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

Side by Side Diff: ui/views/controls/native/native_view_host_aura.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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/views/controls/native/native_view_host_aura.h" 5 #include "ui/views/controls/native/native_view_host_aura.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/aura/client/aura_constants.h" 8 #include "ui/aura/client/aura_constants.h"
9 #include "ui/aura/client/focus_client.h" 9 #include "ui/aura/client/focus_client.h"
10 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
(...skipping 12 matching lines...) Expand all
23 ~ClippingWindowDelegate() override {} 23 ~ClippingWindowDelegate() override {}
24 24
25 void set_native_view(aura::Window* native_view) { 25 void set_native_view(aura::Window* native_view) {
26 native_view_ = native_view; 26 native_view_ = native_view;
27 } 27 }
28 28
29 gfx::Size GetMinimumSize() const override { return gfx::Size(); } 29 gfx::Size GetMinimumSize() const override { return gfx::Size(); }
30 gfx::Size GetMaximumSize() const override { return gfx::Size(); } 30 gfx::Size GetMaximumSize() const override { return gfx::Size(); }
31 void OnBoundsChanged(const gfx::Rect& old_bounds, 31 void OnBoundsChanged(const gfx::Rect& old_bounds,
32 const gfx::Rect& new_bounds) override {} 32 const gfx::Rect& new_bounds) override {}
33 ui::TextInputClient* GetFocusedTextInputClient() override { return nullptr; }
33 gfx::NativeCursor GetCursor(const gfx::Point& point) override { 34 gfx::NativeCursor GetCursor(const gfx::Point& point) override {
34 return gfx::kNullCursor; 35 return gfx::kNullCursor;
35 } 36 }
36 int GetNonClientComponent(const gfx::Point& point) const override { 37 int GetNonClientComponent(const gfx::Point& point) const override {
37 return HTCLIENT; 38 return HTCLIENT;
38 } 39 }
39 bool ShouldDescendIntoChildForEventHandling( 40 bool ShouldDescendIntoChildForEventHandling(
40 aura::Window* child, 41 aura::Window* child,
41 const gfx::Point& location) override { 42 const gfx::Point& location) override {
42 return true; 43 return true;
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 } else { 229 } else {
229 clipping_window_.RemoveChild(host_->native_view()); 230 clipping_window_.RemoveChild(host_->native_view());
230 } 231 }
231 host_->native_view()->SetBounds(clipping_window_.bounds()); 232 host_->native_view()->SetBounds(clipping_window_.bounds());
232 } 233 }
233 if (clipping_window_.parent()) 234 if (clipping_window_.parent())
234 clipping_window_.parent()->RemoveChild(&clipping_window_); 235 clipping_window_.parent()->RemoveChild(&clipping_window_);
235 } 236 }
236 237
237 } // namespace views 238 } // namespace views
OLDNEW
« no previous file with comments | « ui/keyboard/keyboard_controller.cc ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698