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

Side by Side Diff: content/browser/web_contents/web_contents_view_aura.h

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
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 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 void OnBoundsChanged(const gfx::Rect& old_bounds, 160 void OnBoundsChanged(const gfx::Rect& old_bounds,
161 const gfx::Rect& new_bounds) override; 161 const gfx::Rect& new_bounds) override;
162 ui::TextInputClient* GetFocusedTextInputClient() override; 162 ui::TextInputClient* GetFocusedTextInputClient() override;
163 gfx::NativeCursor GetCursor(const gfx::Point& point) override; 163 gfx::NativeCursor GetCursor(const gfx::Point& point) override;
164 int GetNonClientComponent(const gfx::Point& point) const override; 164 int GetNonClientComponent(const gfx::Point& point) const override;
165 bool ShouldDescendIntoChildForEventHandling( 165 bool ShouldDescendIntoChildForEventHandling(
166 aura::Window* child, 166 aura::Window* child,
167 const gfx::Point& location) override; 167 const gfx::Point& location) override;
168 bool CanFocus() override; 168 bool CanFocus() override;
169 void OnCaptureLost() override; 169 void OnCaptureLost() override;
170 void OnPaint(gfx::Canvas* canvas) override; 170 void OnPaint(const ui::PaintContext& context) override;
171 void OnDeviceScaleFactorChanged(float device_scale_factor) override; 171 void OnDeviceScaleFactorChanged(float device_scale_factor) override;
172 void OnWindowDestroying(aura::Window* window) override; 172 void OnWindowDestroying(aura::Window* window) override;
173 void OnWindowDestroyed(aura::Window* window) override; 173 void OnWindowDestroyed(aura::Window* window) override;
174 void OnWindowTargetVisibilityChanged(bool visible) override; 174 void OnWindowTargetVisibilityChanged(bool visible) override;
175 bool HasHitTestMask() const override; 175 bool HasHitTestMask() const override;
176 void GetHitTestMask(gfx::Path* mask) const override; 176 void GetHitTestMask(gfx::Path* mask) const override;
177 177
178 // Overridden from ui::EventHandler: 178 // Overridden from ui::EventHandler:
179 void OnKeyEvent(ui::KeyEvent* event) override; 179 void OnKeyEvent(ui::KeyEvent* event) override;
180 void OnMouseEvent(ui::MouseEvent* event) override; 180 void OnMouseEvent(ui::MouseEvent* event) override;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // On Windows we can run into problems if resources get released within the 237 // On Windows we can run into problems if resources get released within the
238 // initialization phase while the content (and its dimensions) are not known. 238 // initialization phase while the content (and its dimensions) are not known.
239 bool is_or_was_visible_; 239 bool is_or_was_visible_;
240 240
241 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); 241 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura);
242 }; 242 };
243 243
244 } // namespace content 244 } // namespace content
245 245
246 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ 246 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/aura/shadow_layer_delegate.cc ('k') | content/browser/web_contents/web_contents_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698