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

Side by Side Diff: ui/keyboard/keyboard_controller.cc

Issue 860983004: text input focus: Supports Window::GetFocusedTextInputClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « ui/aura/window_delegate.h ('k') | ui/views/controls/native/native_view_host_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 ~KeyboardWindowDelegate() override {} 86 ~KeyboardWindowDelegate() override {}
87 87
88 private: 88 private:
89 // Overridden from aura::WindowDelegate: 89 // Overridden from aura::WindowDelegate:
90 gfx::Size GetMinimumSize() const override { return gfx::Size(); } 90 gfx::Size GetMinimumSize() const override { return gfx::Size(); }
91 gfx::Size GetMaximumSize() const override { return gfx::Size(); } 91 gfx::Size GetMaximumSize() const override { return gfx::Size(); }
92 void OnBoundsChanged(const gfx::Rect& old_bounds, 92 void OnBoundsChanged(const gfx::Rect& old_bounds,
93 const gfx::Rect& new_bounds) override { 93 const gfx::Rect& new_bounds) override {
94 bounds_ = new_bounds; 94 bounds_ = new_bounds;
95 } 95 }
96 ui::TextInputClient* GetFocusedTextInputClient() override {
97 return nullptr;
98 }
96 gfx::NativeCursor GetCursor(const gfx::Point& point) override { 99 gfx::NativeCursor GetCursor(const gfx::Point& point) override {
97 return gfx::kNullCursor; 100 return gfx::kNullCursor;
98 } 101 }
99 int GetNonClientComponent(const gfx::Point& point) const override { 102 int GetNonClientComponent(const gfx::Point& point) const override {
100 return HTNOWHERE; 103 return HTNOWHERE;
101 } 104 }
102 bool ShouldDescendIntoChildForEventHandling( 105 bool ShouldDescendIntoChildForEventHandling(
103 aura::Window* child, 106 aura::Window* child,
104 const gfx::Point& location) override { 107 const gfx::Point& location) override {
105 return true; 108 return true;
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 proxy_->HideKeyboardContainer(container_.get()); 567 proxy_->HideKeyboardContainer(container_.get());
565 } 568 }
566 569
567 void KeyboardController::AddBoundsChangedObserver(aura::Window* window) { 570 void KeyboardController::AddBoundsChangedObserver(aura::Window* window) {
568 aura::Window* target_window = window ? window->GetToplevelWindow() : nullptr; 571 aura::Window* target_window = window ? window->GetToplevelWindow() : nullptr;
569 if (target_window) 572 if (target_window)
570 window_bounds_observer_->AddObservedWindow(target_window); 573 window_bounds_observer_->AddObservedWindow(target_window);
571 } 574 }
572 575
573 } // namespace keyboard 576 } // namespace keyboard
OLDNEW
« no previous file with comments | « ui/aura/window_delegate.h ('k') | ui/views/controls/native/native_view_host_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698