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

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

Issue 6904160: Implement new gray mock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review nits Created 9 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 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 7305a061d4417772abb654f7c088a1de00557484..77b2114c66379bd8ac428e06dd34a13314b749b1 100644
--- a/chrome/browser/ui/views/frame/opaque_browser_frame_view.h
+++ b/chrome/browser/ui/views/frame/opaque_browser_frame_view.h
@@ -48,6 +48,27 @@ class OpaqueBrowserFrameView : public BrowserNonClientFrameView,
virtual int GetReservedHeight() const;
virtual gfx::Rect GetBoundsForReservedArea() const;
+ // Returns the height of the entire nonclient top border, including the window
+ // frame, any title area, and any connected client edge. If |restored| is
+ // true, acts as if the window is restored regardless of the real mode. If
+ // |ignore_vertical_tabs| is true, acts as if vertical tabs are off regardless
+ // of the real state.
+ int NonClientTopBorderHeight(bool restored, bool ignore_vertical_tabs) const;
+
+ // Allows a subclass to tweak the frame. Chromeos uses this to support
+ // drawing themes correctly. |theme_offset| is used to adjust the y offset
+ // of the theme frame bitmap, so they start at the right location.
+ // |left_corner| and |right_corner| will be used on the left and right of
+ // the tabstrip area as opposed to the theme frame.
+ virtual void ModifyMaximizedFramePainting(
+ int* theme_offset,
+ SkBitmap** left_corner,
+ SkBitmap** right_corner);
+
+ // Expose these to subclasses.
+ BrowserFrame* frame() { return frame_; }
+ BrowserView* browser_view() { return browser_view_; }
+
// Overridden from views::NonClientFrameView:
virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
virtual bool AlwaysUseNativeFrame() const OVERRIDE;
@@ -89,13 +110,6 @@ class OpaqueBrowserFrameView : public BrowserNonClientFrameView,
// borders, including both the window frame and any client edge.
int NonClientBorderThickness() const;
- // Returns the height of the entire nonclient top border, including the window
- // frame, any title area, and any connected client edge. If |restored| is
- // true, acts as if the window is restored regardless of the real mode. If
- // |ignore_vertical_tabs| is true, acts as if vertical tabs are off regardless
- // of the real state.
- int NonClientTopBorderHeight(bool restored, bool ignore_vertical_tabs) const;
-
// Returns the y-coordinate of the caption buttons. If |restored| is true,
// acts as if the window is restored regardless of the real mode.
int CaptionButtonY(bool restored) const;
« no previous file with comments | « chrome/browser/ui/gtk/gtk_theme_service.cc ('k') | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698