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

Side by Side Diff: chrome/browser/chromeos/ui/focus_ring_layer.h

Issue 464643003: Stop painting when receiving delegated frame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Even more compile fixes Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CHROME_BROWSER_CHROMEOS_UI_FOCUS_RING_LAYER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_UI_FOCUS_RING_LAYER_H_
6 #define CHROME_BROWSER_CHROMEOS_UI_FOCUS_RING_LAYER_H_ 6 #define CHROME_BROWSER_CHROMEOS_UI_FOCUS_RING_LAYER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/compositor/layer_delegate.h" 10 #include "ui/compositor/layer_delegate.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // Create the layer and update its bounds and position in the hierarchy. 33 // Create the layer and update its bounds and position in the hierarchy.
34 void Update(); 34 void Update();
35 35
36 // Updates the focus ring layer for the view or clears it if |view| is NULL. 36 // Updates the focus ring layer for the view or clears it if |view| is NULL.
37 void SetForView(views::View* view); 37 void SetForView(views::View* view);
38 38
39 private: 39 private:
40 // ui::LayerDelegate overrides: 40 // ui::LayerDelegate overrides:
41 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; 41 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE;
42 virtual void OnDelegatedFrameDamage(
43 const gfx::Rect& damage_rect_in_dip) OVERRIDE;
42 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 44 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
43 virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE; 45 virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE;
44 46
45 // The window containing focus. 47 // The window containing focus.
46 aura::Window* window_; 48 aura::Window* window_;
47 49
48 // The current root window containing the focused object. 50 // The current root window containing the focused object.
49 aura::Window* root_window_; 51 aura::Window* root_window_;
50 52
51 // The bounding rectangle of the focused object, in |window_| coordinates. 53 // The bounding rectangle of the focused object, in |window_| coordinates.
52 gfx::Rect focus_ring_; 54 gfx::Rect focus_ring_;
53 55
54 // The current layer. 56 // The current layer.
55 scoped_ptr<ui::Layer> layer_; 57 scoped_ptr<ui::Layer> layer_;
56 58
57 DISALLOW_COPY_AND_ASSIGN(FocusRingLayer); 59 DISALLOW_COPY_AND_ASSIGN(FocusRingLayer);
58 }; 60 };
59 61
60 } // namespace chromeos 62 } // namespace chromeos
61 63
62 #endif // CHROME_BROWSER_CHROMEOS_UI_FOCUS_RING_LAYER_H_ 64 #endif // CHROME_BROWSER_CHROMEOS_UI_FOCUS_RING_LAYER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/display/overscan_calibrator.cc ('k') | chrome/browser/chromeos/ui/focus_ring_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698