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 <set> | 7 #include <set> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 int GetNonClientComponent(const gfx::Point& point) const override { | 102 int GetNonClientComponent(const gfx::Point& point) const override { |
103 return HTNOWHERE; | 103 return HTNOWHERE; |
104 } | 104 } |
105 bool ShouldDescendIntoChildForEventHandling( | 105 bool ShouldDescendIntoChildForEventHandling( |
106 aura::Window* child, | 106 aura::Window* child, |
107 const gfx::Point& location) override { | 107 const gfx::Point& location) override { |
108 return true; | 108 return true; |
109 } | 109 } |
110 bool CanFocus() override { return false; } | 110 bool CanFocus() override { return false; } |
111 void OnCaptureLost() override {} | 111 void OnCaptureLost() override {} |
112 void OnPaint(gfx::Canvas* canvas) override {} | 112 void OnPaint(const ui::PaintContext& context) override {} |
113 void OnDeviceScaleFactorChanged(float device_scale_factor) override {} | 113 void OnDeviceScaleFactorChanged(float device_scale_factor) override {} |
114 void OnWindowDestroying(aura::Window* window) override {} | 114 void OnWindowDestroying(aura::Window* window) override {} |
115 void OnWindowDestroyed(aura::Window* window) override { delete this; } | 115 void OnWindowDestroyed(aura::Window* window) override { delete this; } |
116 void OnWindowTargetVisibilityChanged(bool visible) override {} | 116 void OnWindowTargetVisibilityChanged(bool visible) override {} |
117 bool HasHitTestMask() const override { | 117 bool HasHitTestMask() const override { |
118 return !proxy_ || proxy_->HasKeyboardWindow(); | 118 return !proxy_ || proxy_->HasKeyboardWindow(); |
119 } | 119 } |
120 void GetHitTestMask(gfx::Path* mask) const override { | 120 void GetHitTestMask(gfx::Path* mask) const override { |
121 if (proxy_ && !proxy_->HasKeyboardWindow()) | 121 if (proxy_ && !proxy_->HasKeyboardWindow()) |
122 return; | 122 return; |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 proxy_->HideKeyboardContainer(container_.get()); | 572 proxy_->HideKeyboardContainer(container_.get()); |
573 } | 573 } |
574 | 574 |
575 void KeyboardController::AddBoundsChangedObserver(aura::Window* window) { | 575 void KeyboardController::AddBoundsChangedObserver(aura::Window* window) { |
576 aura::Window* target_window = window ? window->GetToplevelWindow() : nullptr; | 576 aura::Window* target_window = window ? window->GetToplevelWindow() : nullptr; |
577 if (target_window) | 577 if (target_window) |
578 window_bounds_observer_->AddObservedWindow(target_window); | 578 window_bounds_observer_->AddObservedWindow(target_window); |
579 } | 579 } |
580 | 580 |
581 } // namespace keyboard | 581 } // namespace keyboard |
OLD | NEW |