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

Unified Diff: chrome/browser/ui/views/frame/browser_non_client_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/browser_non_client_frame_view.h
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view.h b/chrome/browser/ui/views/frame/browser_non_client_frame_view.h
index 8644ee138a03cdb6f2e4900537b9c857b7a1d79d..7a552db4bb496a80763d4726590c1703eb434d07 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view.h
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view.h
@@ -67,6 +67,17 @@ class BrowserNonClientFrameView : public views::NonClientFrameView,
BrowserView* browser_view() const { return browser_view_; }
BrowserFrame* frame() const { return frame_; }
+ // Whether the frame should be painted with theming.
+ // By default, tabbed browser windows are themed but popup and app windows are
+ // not.
+ virtual bool ShouldPaintAsThemed() const;
+
+ // 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;
+
// Updates the avatar button using the old or new UI based on the BrowserView
// type, and the presence of the --enable-new-avatar-menu flag. Calls either
// UpdateAvatarInfo() or UpdateNewStyleAvatar() accordingly.
« no previous file with comments | « chrome/browser/themes/theme_properties.cc ('k') | chrome/browser/ui/views/frame/browser_non_client_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698