Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: content/shell/shell_aura.cc

Issue 11419013: Add desktop vs. ash context to ui_controls Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mac Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/shell/shell_aura.cc
diff --git a/content/shell/shell_aura.cc b/content/shell/shell_aura.cc
index 9e63d3305742e3baf250a702d21da2152acf8054..b2afa44f8f70f1678adcd1b950e38303bf34ad0a 100644
--- a/content/shell/shell_aura.cc
+++ b/content/shell/shell_aura.cc
@@ -6,6 +6,7 @@
#include "base/command_line.h"
#include "base/utf_string_conversions.h"
+#include "ui/aura/desktop_ui_controls.h"
#include "ui/aura/env.h"
#include "ui/aura/root_window.h"
#include "ui/aura/window.h"
@@ -14,6 +15,7 @@
#include "ui/base/events/event.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/screen.h"
+#include "ui/ui_controls/ui_controls.h"
#include "ui/views/controls/button/text_button.h"
#include "ui/views/controls/textfield/textfield.h"
#include "ui/views/controls/textfield/textfield_controller.h"
@@ -289,6 +291,10 @@ void Shell::PlatformInitialize() {
stacking_client_ = new views::DesktopStackingClient();
gfx::Screen::SetScreenInstance(
gfx::SCREEN_TYPE_NATIVE, views::CreateDesktopScreen());
+ // TODO(scottmg): NULL RootWindow, http://crbug.com/128578
+ ui_controls::UIControls::SetUIControlsInstance(
+ ui_controls::UI_CONTROLS_TYPE_NATIVE,
+ aura::CreateDesktopUIControls(NULL));
#endif
aura::client::SetStackingClient(stacking_client_);
views_delegate_ = new ShellViewsDelegateAura();

Powered by Google App Engine
This is Rietveld 408576698