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

Unified Diff: chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc

Issue 8771015: Rename Desktop->RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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: chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc
===================================================================
--- chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc (revision 113260)
+++ chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc (working copy)
@@ -37,8 +37,8 @@
#endif
#if defined(USE_AURA)
-#include "ui/aura/desktop.h"
-#include "ui/aura/desktop_observer.h"
+#include "ui/aura/root_window.h"
+#include "ui/aura/root_window_observer.h"
#include "ui/aura_shell/shell.h"
#include "ui/aura_shell/shell_window_ids.h"
#endif
@@ -51,7 +51,7 @@
"experimental.input.virtualKeyboard.onTextInputTypeChanged";
// The default position of the keyboard widget should be at the bottom,
-// spanning the entire width of the desktop.
+// spanning the entire width of the root window.
gfx::Rect GetKeyboardPosition(int height) {
gfx::Rect area = gfx::Screen::GetMonitorAreaNearestPoint(gfx::Point());
return gfx::Rect(area.x(), area.y() + area.height() - height,
@@ -71,7 +71,7 @@
public chromeos::input_method::InputMethodManager::VirtualKeyboardObserver,
#endif
#if defined(USE_AURA)
- public aura::DesktopObserver,
+ public aura::RootWindowObserver,
#endif
public content::NotificationObserver,
public views::Widget::Observer,
@@ -84,7 +84,7 @@
// be sent to |widget|.
void ShowKeyboardForWidget(views::Widget* widget);
- // Updates the bounds to reflect the current screen/desktop bounds.
+ // Updates the bounds to reflect the current screen/root window bounds.
void ResetBounds();
// Overridden from views::Widget
@@ -131,8 +131,8 @@
#endif
#if defined(USE_AURA)
- // Overridden from aura::DesktopObserver.
- virtual void OnDesktopResized(const gfx::Size& new_size) OVERRIDE;
+ // Overridden from aura::RootWindowObserver.
+ virtual void OnRootWindowResized(const gfx::Size& new_size) OVERRIDE;
#endif
// Overridden from NotificationObserver.
@@ -227,7 +227,7 @@
#endif
#if defined(USE_AURA)
- aura::Desktop::GetInstance()->AddObserver(this);
+ aura::RootWindow::GetInstance()->AddObserver(this);
#endif
}
@@ -242,7 +242,7 @@
#endif
#if defined(USE_AURA)
- aura::Desktop::GetInstance()->RemoveObserver(this);
+ aura::RootWindow::GetInstance()->RemoveObserver(this);
#endif
// TODO(sad): Do anything else?
}
@@ -442,7 +442,7 @@
#endif
#if defined(USE_AURA)
-void KeyboardWidget::OnDesktopResized(const gfx::Size& new_size) {
+void KeyboardWidget::OnRootWindowResized(const gfx::Size& new_size) {
ResetBounds();
}
#endif
« no previous file with comments | « chrome/browser/ui/views/tab_contents/native_tab_contents_view_aura.cc ('k') | chrome/test/base/in_process_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698