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 "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
10 #include "ui/aura/window_delegate.h" | 10 #include "ui/aura/window_delegate.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 virtual ~KeyboardWindowDelegate() {} | 77 virtual ~KeyboardWindowDelegate() {} |
78 | 78 |
79 private: | 79 private: |
80 // Overridden from aura::WindowDelegate: | 80 // Overridden from aura::WindowDelegate: |
81 virtual gfx::Size GetMinimumSize() const OVERRIDE { return gfx::Size(); } | 81 virtual gfx::Size GetMinimumSize() const OVERRIDE { return gfx::Size(); } |
82 virtual gfx::Size GetMaximumSize() const OVERRIDE { return gfx::Size(); } | 82 virtual gfx::Size GetMaximumSize() const OVERRIDE { return gfx::Size(); } |
83 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, | 83 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, |
84 const gfx::Rect& new_bounds) OVERRIDE { | 84 const gfx::Rect& new_bounds) OVERRIDE { |
85 bounds_ = new_bounds; | 85 bounds_ = new_bounds; |
86 } | 86 } |
87 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE { | |
88 return gfx::kNullCursor; | |
89 } | |
90 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE { | 87 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE { |
91 return HTNOWHERE; | 88 return HTNOWHERE; |
92 } | 89 } |
93 virtual bool ShouldDescendIntoChildForEventHandling( | 90 virtual bool ShouldDescendIntoChildForEventHandling( |
94 aura::Window* child, | 91 aura::Window* child, |
95 const gfx::Point& location) OVERRIDE { | 92 const gfx::Point& location) OVERRIDE { |
96 return true; | 93 return true; |
97 } | 94 } |
98 virtual bool CanFocus() OVERRIDE { return false; } | 95 virtual bool CanFocus() OVERRIDE { return false; } |
99 virtual void OnCaptureLost() OVERRIDE {} | 96 virtual void OnCaptureLost() OVERRIDE {} |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 // background during animation. | 408 // background during animation. |
412 NotifyKeyboardBoundsChanging(proxy_->GetKeyboardWindow()->bounds()); | 409 NotifyKeyboardBoundsChanging(proxy_->GetKeyboardWindow()->bounds()); |
413 proxy_->EnsureCaretInWorkArea(); | 410 proxy_->EnsureCaretInWorkArea(); |
414 } | 411 } |
415 | 412 |
416 void KeyboardController::HideAnimationFinished() { | 413 void KeyboardController::HideAnimationFinished() { |
417 proxy_->HideKeyboardContainer(container_.get()); | 414 proxy_->HideKeyboardContainer(container_.get()); |
418 } | 415 } |
419 | 416 |
420 } // namespace keyboard | 417 } // namespace keyboard |
OLD | NEW |