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

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

Issue 1057873004: Pass a ui::PaintContext from ui::Layer to layer delegates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layer-paintcontext: mac Created 5 years, 8 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/compositor/layer_unittest.cc ('k') | ui/snapshot/snapshot_aura_unittest.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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « ui/compositor/layer_unittest.cc ('k') | ui/snapshot/snapshot_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698