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

Side by Side Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view.h

Issue 98793009: Linux Aura: Hide title bar when CustomFrameView maximized on Unity. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Note: kUseSystemTitleBar check moved to OpaqueBrowserFrameView. Created 6 years, 11 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 (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 CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/ui/view_ids.h" 9 #include "chrome/browser/ui/view_ids.h"
10 #include "chrome/browser/ui/views/frame/browser_frame.h" 10 #include "chrome/browser/ui/views/frame/browser_frame.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 int TopResizeHeight() const; 127 int TopResizeHeight() const;
128 128
129 // Returns the thickness of the entire nonclient left, right, and bottom 129 // Returns the thickness of the entire nonclient left, right, and bottom
130 // borders, including both the window frame and any client edge. 130 // borders, including both the window frame and any client edge.
131 int NonClientBorderThickness() const; 131 int NonClientBorderThickness() const;
132 132
133 // Returns the bounds of the titlebar icon (or where the icon would be if 133 // Returns the bounds of the titlebar icon (or where the icon would be if
134 // there was one). 134 // there was one).
135 gfx::Rect IconBounds() const; 135 gfx::Rect IconBounds() const;
136 136
137 // Returns true if the view should draw its own custom title bar.
138 bool ShouldShowWindowTitleBar() const;
139
137 // Paint various sub-components of this view. The *FrameBorder() functions 140 // Paint various sub-components of this view. The *FrameBorder() functions
138 // also paint the background of the titlebar area, since the top frame border 141 // also paint the background of the titlebar area, since the top frame border
139 // and titlebar background are a contiguous component. 142 // and titlebar background are a contiguous component.
140 void PaintRestoredFrameBorder(gfx::Canvas* canvas); 143 void PaintRestoredFrameBorder(gfx::Canvas* canvas);
141 void PaintMaximizedFrameBorder(gfx::Canvas* canvas); 144 void PaintMaximizedFrameBorder(gfx::Canvas* canvas);
142 void PaintToolbarBackground(gfx::Canvas* canvas); 145 void PaintToolbarBackground(gfx::Canvas* canvas);
143 void PaintRestoredClientEdge(gfx::Canvas* canvas); 146 void PaintRestoredClientEdge(gfx::Canvas* canvas);
144 147
145 // Compute aspects of the frame needed to paint the frame background. 148 // Compute aspects of the frame needed to paint the frame background.
146 SkColor GetFrameColor() const; 149 SkColor GetFrameColor() const;
(...skipping 22 matching lines...) Expand all
169 // Background painter for the window frame. 172 // Background painter for the window frame.
170 scoped_ptr<views::FrameBackground> frame_background_; 173 scoped_ptr<views::FrameBackground> frame_background_;
171 174
172 // Observer that handles platform dependent configuration. 175 // Observer that handles platform dependent configuration.
173 scoped_ptr<OpaqueBrowserFrameViewPlatformSpecific> platform_observer_; 176 scoped_ptr<OpaqueBrowserFrameViewPlatformSpecific> platform_observer_;
174 177
175 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); 178 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView);
176 }; 179 };
177 180
178 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 181 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.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