Get Chrome to build & link with USE_AURA on Windows again.BUG=noneTEST=none
Review URL: http://codereview.chromium.org/8174005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104382 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
build
chrome/browser
chrome_browser_main.ccchrome_browser_main_win.ccprocess_singleton.hprocess_singleton_aura.cc
renderer_host
ui
content
browser
renderer_host
plugin
printing
views
webkit/plugins/npapi
@ -309,6 +309,11 @@
|
||||
'file_manager_extension%': 0,
|
||||
}],
|
||||
|
||||
# ... except on Windows even with Aura.
|
||||
['use_aura==1 and OS=="win"', {
|
||||
'file_manager_extension%': 0,
|
||||
}],
|
||||
|
||||
# Enable WebUI TaskManager only on Chrome OS, Touch or PureView.
|
||||
['chromeos==1 or touchui==1 or use_only_pure_views==1 or use_aura==1', {
|
||||
'webui_task_manager%': 1,
|
||||
|
@ -200,7 +200,8 @@
|
||||
#endif
|
||||
|
||||
#if defined(USE_AURA)
|
||||
#include "chrome/browser/ui/views/aura/aura_init.h"
|
||||
#include "ui/aura/desktop.h"
|
||||
#include "ui/aura_shell/shell_factory.h"
|
||||
#include "ui/aura/desktop.h"
|
||||
#endif
|
||||
|
||||
@ -1367,7 +1368,7 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunInternal() {
|
||||
child_process_logging::SetCommandLine(CommandLine::ForCurrentProcess());
|
||||
|
||||
#if defined(USE_AURA)
|
||||
browser::InitAuraDesktop();
|
||||
aura_shell::InitDesktopWindow();
|
||||
#elif defined(TOOLKIT_VIEWS)
|
||||
views::Widget::SetPureViews(
|
||||
CommandLine::ForCurrentProcess()->HasSwitch(switches::kUsePureViews));
|
||||
|
@ -74,11 +74,13 @@ void WarnAboutMinimumSystemRequirements() {
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(USE_AURA)
|
||||
void ShowMissingLocaleMessageBox() {
|
||||
ui::MessageBox(NULL, ASCIIToUTF16(chrome_browser::kMissingLocaleDataMessage),
|
||||
ASCIIToUTF16(chrome_browser::kMissingLocaleDataTitle),
|
||||
MB_OK | MB_ICONERROR | MB_TOPMOST);
|
||||
}
|
||||
#endif
|
||||
|
||||
void RecordBrowserStartupTime() {
|
||||
// Calculate the time that has elapsed from our own process creation.
|
||||
|
@ -78,7 +78,7 @@ class ProcessSingleton : public base::NonThreadSafe {
|
||||
int timeout_seconds);
|
||||
#endif // defined(OS_LINUX)
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#if defined(OS_WIN) && !defined(USE_AURA)
|
||||
// Used in specific cases to let us know that there is an existing instance
|
||||
// of Chrome running with this profile. In general, you should not use this
|
||||
// function. Instead consider using NotifyOtherProcessOrCreate().
|
||||
|
@ -7,7 +7,7 @@
|
||||
// Look for a Chrome instance that uses the same profile directory.
|
||||
ProcessSingleton::ProcessSingleton(const FilePath& user_data_dir)
|
||||
:
|
||||
#if defined(OS_WIN)
|
||||
#if defined(OS_WIN) && !defined(USE_AURA)
|
||||
window_(NULL),
|
||||
#endif
|
||||
locked_(false), foreground_window_(NULL) {
|
||||
|
@ -10,17 +10,15 @@
|
||||
#endif
|
||||
#include "views/widget/widget.h"
|
||||
|
||||
#if !defined(USE_AURA)
|
||||
// static
|
||||
RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget(
|
||||
RenderWidgetHost* widget) {
|
||||
#if !defined(USE_AURA)
|
||||
if (views::Widget::IsPureViews())
|
||||
#endif
|
||||
return new RenderWidgetHostViewViews(widget);
|
||||
#if !defined(USE_AURA)
|
||||
return new RenderWidgetHostViewWin(widget);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
void RenderWidgetHostViewViews::UpdateCursor(const WebCursor& cursor) {
|
||||
}
|
||||
|
@ -525,9 +525,13 @@ void WrenchMenuModel::Build() {
|
||||
AddSeparator();
|
||||
}
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
#if defined(USE_AURA)
|
||||
#if defined(OS_WIN)
|
||||
AddItemWithStringId(IDC_OPTIONS, IDS_OPTIONS);
|
||||
#else
|
||||
AddItemWithStringId(IDC_OPTIONS, IDS_PREFERENCES);
|
||||
#elif defined(USE_AURA)
|
||||
#endif
|
||||
#elif defined(OS_MACOSX)
|
||||
AddItemWithStringId(IDC_OPTIONS, IDS_PREFERENCES);
|
||||
#elif defined(TOOLKIT_USES_GTK)
|
||||
string16 preferences = gtk_util::GetStockPreferencesMenuLabel();
|
||||
|
@ -18,22 +18,22 @@
|
||||
#include "views/focus/view_storage.h"
|
||||
#include "views/widget/widget.h"
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#if defined(USE_AURA)
|
||||
#include "ui/gfx/scoped_sk_region.h"
|
||||
#elif defined(OS_WIN)
|
||||
#include "base/win/scoped_gdi_object.h"
|
||||
#elif defined(TOOLKIT_USES_GTK)
|
||||
#include "ui/base/gtk/scoped_handle_gtk.h"
|
||||
#else
|
||||
#include "ui/gfx/scoped_sk_region.h"
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#if defined(USE_AURA)
|
||||
typedef gfx::ScopedSkRegion ScopedPlatformRegion;
|
||||
#elif defined(OS_WIN)
|
||||
typedef base::win::ScopedRegion ScopedPlatformRegion;
|
||||
#elif defined(TOOLKIT_USES_GTK)
|
||||
typedef ui::ScopedRegion ScopedPlatformRegion;
|
||||
#else
|
||||
typedef gfx::ScopedSkRegion ScopedPlatformRegion;
|
||||
#endif
|
||||
|
||||
} // namespace
|
||||
|
@ -10,5 +10,9 @@
|
||||
// static
|
||||
SelectFileDialog* SelectFileDialog::Create(Listener* listener) {
|
||||
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
||||
#if defined(OS_WIN)
|
||||
return NULL;
|
||||
#else
|
||||
return new FileManagerDialog(listener);
|
||||
#endif
|
||||
}
|
||||
|
@ -96,13 +96,3 @@ gfx::NativeViewAccessible
|
||||
NOTIMPLEMENTED();
|
||||
return View::GetNativeViewAccessible();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// NativeTabContentsContainer, public:
|
||||
|
||||
// static
|
||||
NativeTabContentsContainer* NativeTabContentsContainer::CreateNativeContainer(
|
||||
TabContentsContainer* container) {
|
||||
return new NativeTabContentsContainerViews(container);
|
||||
// TODO(beng): return new NativeTabContentsContainerAura(container);
|
||||
}
|
||||
|
@ -4,6 +4,8 @@
|
||||
|
||||
#include "content/browser/renderer_host/render_message_filter.h"
|
||||
|
||||
#include "ui/gfx/rect.h"
|
||||
|
||||
// TODO(shess): Provide a mapping from reply_msg->routing_id() to HWND
|
||||
// so that we can eliminate the NativeViewId parameter.
|
||||
#if defined(OS_WIN)
|
||||
|
@ -110,7 +110,7 @@ bool WebPluginDelegateStub::OnMessageReceived(const IPC::Message& msg) {
|
||||
IPC_MESSAGE_HANDLER(PluginMsg_SendJavaScriptStream,
|
||||
OnSendJavaScriptStream)
|
||||
IPC_MESSAGE_HANDLER(PluginMsg_SetContentAreaFocus, OnSetContentAreaFocus)
|
||||
#if defined(OS_WIN)
|
||||
#if defined(OS_WIN) && !defined(USE_AURA)
|
||||
IPC_MESSAGE_HANDLER(PluginMsg_ImeCompositionUpdated,
|
||||
OnImeCompositionUpdated)
|
||||
IPC_MESSAGE_HANDLER(PluginMsg_ImeCompositionCompleted,
|
||||
@ -330,7 +330,7 @@ void WebPluginDelegateStub::OnSetContentAreaFocus(bool has_focus) {
|
||||
delegate_->SetContentAreaHasFocus(has_focus);
|
||||
}
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#if defined(OS_WIN) && !defined(USE_AURA)
|
||||
void WebPluginDelegateStub::OnImeCompositionUpdated(
|
||||
const string16& text,
|
||||
const std::vector<int>& clauses,
|
||||
@ -338,7 +338,7 @@ void WebPluginDelegateStub::OnImeCompositionUpdated(
|
||||
int cursor_position) {
|
||||
if (delegate_)
|
||||
delegate_->ImeCompositionUpdated(text, clauses, target, cursor_position);
|
||||
#if defined(OS_WIN)
|
||||
#if defined(OS_WIN) && !defined(USE_AURA)
|
||||
webplugin_->UpdateIMEStatus();
|
||||
#endif
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ class WebPluginDelegateStub : public IPC::Channel::Listener,
|
||||
void OnGetFormValue(string16* value, bool* success);
|
||||
|
||||
void OnSetContentAreaFocus(bool has_focus);
|
||||
#if defined(OS_WIN)
|
||||
#if defined(OS_WIN) && !defined(USE_AURA)
|
||||
void OnImeCompositionUpdated(const string16& text,
|
||||
const std::vector<int>& clauses,
|
||||
const std::vector<int>& target,
|
||||
|
@ -748,7 +748,7 @@ void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) {
|
||||
Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id));
|
||||
}
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#if defined(OS_WIN) && !defined(USE_AURA)
|
||||
void WebPluginProxy::UpdateIMEStatus() {
|
||||
// Retrieve the IME status from a plug-in and send it to a renderer process
|
||||
// when the plug-in has updated it.
|
||||
|
@ -168,7 +168,7 @@ class WebPluginProxy : public webkit::npapi::WebPlugin {
|
||||
|
||||
virtual void URLRedirectResponse(bool allow, int resource_id);
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#if defined(OS_WIN) && !defined(USE_AURA)
|
||||
// Retrieves the IME status from a windowless plug-in and sends it to a
|
||||
// renderer process. A renderer process will convert the coordinates from
|
||||
// local to the window coordinates and send the converted coordinates to a
|
||||
|
@ -8,11 +8,13 @@
|
||||
|
||||
namespace printing {
|
||||
|
||||
void PrintedDocument::RenderPrintedPage(
|
||||
const PrintedPage& page, PrintingContext* context) const {
|
||||
#if defined(OS_POSIX)
|
||||
void PrintedDocument::RenderPrintedPage(const PrintedPage& page,
|
||||
PrintingContext* context) const {
|
||||
// TODO(saintlou): This a stub to allow us to build under Aura.
|
||||
// See issue: http://crbug.com/99282
|
||||
NOTIMPLEMENTED();
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace printing
|
||||
|
@ -500,14 +500,14 @@
|
||||
}],
|
||||
['touchui==0', {
|
||||
'sources!': [
|
||||
'controls/menu/native_menu_views.cc',
|
||||
'controls/menu/native_menu_views.h',
|
||||
'touchui/touch_selection_controller_impl.cc',
|
||||
'touchui/touch_selection_controller_impl.h',
|
||||
],
|
||||
}],
|
||||
['touchui==0 and use_aura==0', {
|
||||
'sources!': [
|
||||
'controls/menu/native_menu_views.cc',
|
||||
'controls/menu/native_menu_views.h',
|
||||
'widget/tooltip_manager_views.cc',
|
||||
],
|
||||
}],
|
||||
|
@ -55,7 +55,7 @@ class QuickDrawDrawingManager;
|
||||
#endif // NP_NO_QUICKDRAW
|
||||
#endif // OS_MACOSX
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#if defined(OS_WIN) && !defined(USE_AURA)
|
||||
class WebPluginIMEWin;
|
||||
#endif // OS_WIN
|
||||
|
||||
@ -147,7 +147,7 @@ class WebPluginDelegateImpl : public WebPluginDelegate {
|
||||
// Informs the plugin that the view it is in has gained or lost focus.
|
||||
void SetContentAreaHasFocus(bool has_focus);
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#if defined(OS_WIN) && !defined(USE_AURA)
|
||||
// Informs the plug-in that an IME has changed its status.
|
||||
void ImeCompositionUpdated(const string16& text,
|
||||
const std::vector<int>& clauses,
|
||||
@ -331,7 +331,7 @@ class WebPluginDelegateImpl : public WebPluginDelegate {
|
||||
WebPlugin* plugin_;
|
||||
scoped_refptr<PluginInstance> instance_;
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#if defined(OS_WIN) && !defined(USE_AURA)
|
||||
// Original wndproc before we subclassed.
|
||||
WNDPROC plugin_wnd_proc_;
|
||||
|
||||
@ -371,7 +371,7 @@ class WebPluginDelegateImpl : public WebPluginDelegate {
|
||||
gfx::Rect clip_rect_;
|
||||
int quirks_;
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#if defined(OS_WIN) && !defined(USE_AURA)
|
||||
// Windowless plugins don't have keyboard focus causing issues with the
|
||||
// plugin not receiving keyboard events if the plugin enters a modal
|
||||
// loop like TrackPopupMenuEx or MessageBox, etc.
|
||||
|
Reference in New Issue
Block a user