OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/keyboard/keyboard_controller.h" | 5 #include "ui/keyboard/keyboard_controller.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "content/public/browser/render_widget_host.h" | 9 #include "content/public/browser/render_widget_host.h" |
10 #include "content/public/browser/render_widget_host_iterator.h" | 10 #include "content/public/browser/render_widget_host_iterator.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 virtual ~KeyboardWindowDelegate() {} | 83 virtual ~KeyboardWindowDelegate() {} |
84 | 84 |
85 private: | 85 private: |
86 // Overridden from aura::WindowDelegate: | 86 // Overridden from aura::WindowDelegate: |
87 virtual gfx::Size GetMinimumSize() const OVERRIDE { return gfx::Size(); } | 87 virtual gfx::Size GetMinimumSize() const OVERRIDE { return gfx::Size(); } |
88 virtual gfx::Size GetMaximumSize() const OVERRIDE { return gfx::Size(); } | 88 virtual gfx::Size GetMaximumSize() const OVERRIDE { return gfx::Size(); } |
89 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, | 89 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, |
90 const gfx::Rect& new_bounds) OVERRIDE { | 90 const gfx::Rect& new_bounds) OVERRIDE { |
91 bounds_ = new_bounds; | 91 bounds_ = new_bounds; |
92 } | 92 } |
| 93 virtual void OnPropertyChanged(const void* key, intptr_t old) OVERRIDE {} |
93 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE { | 94 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE { |
94 return gfx::kNullCursor; | 95 return gfx::kNullCursor; |
95 } | 96 } |
96 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE { | 97 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE { |
97 return HTNOWHERE; | 98 return HTNOWHERE; |
98 } | 99 } |
99 virtual bool ShouldDescendIntoChildForEventHandling( | 100 virtual bool ShouldDescendIntoChildForEventHandling( |
100 aura::Window* child, | 101 aura::Window* child, |
101 const gfx::Point& location) OVERRIDE { | 102 const gfx::Point& location) OVERRIDE { |
102 return true; | 103 return true; |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 | 547 |
547 void KeyboardController::RemoveBoundsChangedObserver(aura::Window* window) { | 548 void KeyboardController::RemoveBoundsChangedObserver(aura::Window* window) { |
548 aura::Window* target_window = GetFrameWindow(window); | 549 aura::Window* target_window = GetFrameWindow(window); |
549 if (target_window && | 550 if (target_window && |
550 target_window->HasObserver(window_bounds_observer_.get())) { | 551 target_window->HasObserver(window_bounds_observer_.get())) { |
551 target_window->RemoveObserver(window_bounds_observer_.get()); | 552 target_window->RemoveObserver(window_bounds_observer_.get()); |
552 } | 553 } |
553 } | 554 } |
554 | 555 |
555 } // namespace keyboard | 556 } // namespace keyboard |
OLD | NEW |