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

Unified Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view.h

Issue 1019023002: MacViews: Implement non-client frame view (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wrench-menu
Patch Set: Use Yosemite colors Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/opaque_browser_frame_view.h
diff --git a/chrome/browser/ui/views/frame/opaque_browser_frame_view.h b/chrome/browser/ui/views/frame/opaque_browser_frame_view.h
index 1e1f2fc3ff6d3d630b5db7fa9b721a9ccb25c095..1a355b005afc70a34bd46adf3abac7e71dae3eb6 100644
--- a/chrome/browser/ui/views/frame/opaque_browser_frame_view.h
+++ b/chrome/browser/ui/views/frame/opaque_browser_frame_view.h
@@ -97,6 +97,7 @@ class OpaqueBrowserFrameView : public BrowserNonClientFrameView,
void OnPaint(gfx::Canvas* canvas) override;
// BrowserNonClientFrameView:
+ bool ShouldPaintAsThemed() const override;
void UpdateNewStyleAvatar() override;
private:
@@ -144,12 +145,6 @@ class OpaqueBrowserFrameView : public BrowserNonClientFrameView,
void PaintToolbarBackground(gfx::Canvas* canvas);
void PaintRestoredClientEdge(gfx::Canvas* canvas);
- // Compute aspects of the frame needed to paint the frame background.
- SkColor GetFrameColor() const;
- gfx::ImageSkia* GetFrameImage() const;
- gfx::ImageSkia* GetFrameOverlayImage() const;
- int GetTopAreaHeight() const;
-
// Returns the bounds of the client area for the specified view size.
gfx::Rect CalculateClientAreaBounds(int width, int height) const;

Powered by Google App Engine
This is Rietveld 408576698