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

Side by Side Diff: ash/root_window_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 | « ash/drag_drop/drag_drop_controller.cc ('k') | ash/utility/partial_screenshot_controller.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) 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 "ash/root_window_controller.h" 5 #include "ash/root_window_controller.h"
6 6
7 #include <queue> 7 #include <queue>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_constants.h" 10 #include "ash/ash_constants.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 int GetNonClientComponent(const gfx::Point& point) const override { 228 int GetNonClientComponent(const gfx::Point& point) const override {
229 return HTNOWHERE; 229 return HTNOWHERE;
230 } 230 }
231 bool ShouldDescendIntoChildForEventHandling( 231 bool ShouldDescendIntoChildForEventHandling(
232 aura::Window* child, 232 aura::Window* child,
233 const gfx::Point& location) override { 233 const gfx::Point& location) override {
234 return false; 234 return false;
235 } 235 }
236 bool CanFocus() override { return false; } 236 bool CanFocus() override { return false; }
237 void OnCaptureLost() override {} 237 void OnCaptureLost() override {}
238 void OnPaint(gfx::Canvas* canvas) override {} 238 void OnPaint(const ui::PaintContext& context) override {}
239 void OnDeviceScaleFactorChanged(float device_scale_factor) override {} 239 void OnDeviceScaleFactorChanged(float device_scale_factor) override {}
240 void OnWindowDestroying(aura::Window* window) override {} 240 void OnWindowDestroying(aura::Window* window) override {}
241 void OnWindowDestroyed(aura::Window* window) override { delete this; } 241 void OnWindowDestroyed(aura::Window* window) override { delete this; }
242 void OnWindowTargetVisibilityChanged(bool visible) override {} 242 void OnWindowTargetVisibilityChanged(bool visible) override {}
243 bool HasHitTestMask() const override { return false; } 243 bool HasHitTestMask() const override { return false; }
244 void GetHitTestMask(gfx::Path* mask) const override {} 244 void GetHitTestMask(gfx::Path* mask) const override {}
245 245
246 private: 246 private:
247 DISALLOW_COPY_AND_ASSIGN(EmptyWindowDelegate); 247 DISALLOW_COPY_AND_ASSIGN(EmptyWindowDelegate);
248 }; 248 };
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 else 1055 else
1056 DisableTouchHudProjection(); 1056 DisableTouchHudProjection();
1057 } 1057 }
1058 1058
1059 RootWindowController* GetRootWindowController( 1059 RootWindowController* GetRootWindowController(
1060 const aura::Window* root_window) { 1060 const aura::Window* root_window) {
1061 return root_window ? GetRootWindowSettings(root_window)->controller : NULL; 1061 return root_window ? GetRootWindowSettings(root_window)->controller : NULL;
1062 } 1062 }
1063 1063
1064 } // namespace ash 1064 } // namespace ash
OLDNEW
« no previous file with comments | « ash/drag_drop/drag_drop_controller.cc ('k') | ash/utility/partial_screenshot_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698