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

Unified Diff: content/shell/shell_aura.cc

Issue 11368010: Move aura shared and desktop classes to the views target. Note that the files don't actually move, … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « content/shell/DEPS ('k') | content/shell/shell_stacking_client_ash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_aura.cc
===================================================================
--- content/shell/shell_aura.cc (revision 165738)
+++ content/shell/shell_aura.cc (working copy)
@@ -29,6 +29,7 @@
#include "ui/views/widget/widget_delegate.h"
#if defined(OS_CHROMEOS)
+#include "ash/screen_ash.h"
#include "chromeos/dbus/dbus_thread_manager.h"
#include "content/shell/shell_stacking_client_ash.h"
#else
@@ -192,7 +193,7 @@
layout->AddPaddingRow(0, 5);
}
- // Overriden from TextfieldController
+ // Overridden from TextfieldController
virtual void ContentsChanged(Textfield* sender,
const string16& new_contents) OVERRIDE {
}
@@ -211,7 +212,7 @@
return false;
}
- // Overriden from ButtonListener
+ // Overridden from ButtonListener
virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE {
if (sender == back_button_)
shell_->GoBackOrForward(-1);
@@ -223,7 +224,7 @@
shell_->Stop();
}
- // Overriden from WidgetDelegateView
+ // Overridden from WidgetDelegateView
virtual bool CanResize() const OVERRIDE { return true; }
virtual bool CanMaximize() const OVERRIDE { return true; }
virtual string16 GetWindowTitle() const OVERRIDE {
@@ -237,7 +238,7 @@
}
virtual View* GetContentsView() OVERRIDE { return this; }
- // Overriden from View
+ // Overridden from View
virtual void ViewHierarchyChanged(bool is_add,
View* parent,
View* child) OVERRIDE {
@@ -285,11 +286,13 @@
aura::Env::GetInstance()->SetDisplayManager(new aura::SingleDisplayManager);
#if defined(OS_CHROMEOS)
stacking_client_ = new content::ShellStackingClientAsh();
+ gfx::Screen::SetScreenInstance(
+ gfx::SCREEN_TYPE_NATIVE, new ash::ScreenAsh);
#else
stacking_client_ = new aura::DesktopStackingClient();
-#endif
gfx::Screen::SetScreenInstance(
gfx::SCREEN_TYPE_NATIVE, aura::CreateDesktopScreen());
+#endif
views_delegate_ = new ShellViewsDelegateAura();
}
« no previous file with comments | « content/shell/DEPS ('k') | content/shell/shell_stacking_client_ash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698