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

Unified Diff: ui/keyboard/keyboard_controller_proxy.h

Issue 280273002: Add default shadow to keyboard window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months 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 | « no previous file | ui/keyboard/keyboard_controller_proxy.cc » ('j') | ui/keyboard/keyboard_controller_proxy.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/keyboard_controller_proxy.h
diff --git a/ui/keyboard/keyboard_controller_proxy.h b/ui/keyboard/keyboard_controller_proxy.h
index 0884cd91bb0b440e6e1ccafda1c0af19b8447c83..d7886e2d91a6f532adb22eb100dfd26444baea5b 100644
--- a/ui/keyboard/keyboard_controller_proxy.h
+++ b/ui/keyboard/keyboard_controller_proxy.h
@@ -7,6 +7,7 @@
#include "base/memory/scoped_ptr.h"
#include "content/public/common/media_stream_request.h"
+#include "ui/aura/window_observer.h"
#include "ui/base/ime/text_input_type.h"
#include "ui/keyboard/keyboard_export.h"
@@ -24,12 +25,15 @@ class Rect;
namespace ui {
class InputMethod;
}
+namespace wm {
+class Shadow;
+}
namespace keyboard {
// A proxy used by the KeyboardController to get access to the virtual
// keyboard window.
-class KEYBOARD_EXPORT KeyboardControllerProxy {
+class KEYBOARD_EXPORT KeyboardControllerProxy : public aura::WindowObserver {
public:
class TestApi {
public:
@@ -108,6 +112,12 @@ class KEYBOARD_EXPORT KeyboardControllerProxy {
// loading the keyboard page.
virtual void SetupWebContents(content::WebContents* contents);
+ // aura::WindowObserver overrides:
+ virtual void OnWindowBoundsChanged(aura::Window* window,
+ const gfx::Rect& old_bounds,
+ const gfx::Rect& new_bounds) OVERRIDE;
+ virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE;
+
private:
friend class TestApi;
@@ -120,6 +130,7 @@ class KEYBOARD_EXPORT KeyboardControllerProxy {
const GURL default_url_;
scoped_ptr<content::WebContents> keyboard_contents_;
+ scoped_ptr<wm::Shadow> shadow_;
DISALLOW_COPY_AND_ASSIGN(KeyboardControllerProxy);
};
« no previous file with comments | « no previous file | ui/keyboard/keyboard_controller_proxy.cc » ('j') | ui/keyboard/keyboard_controller_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698