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

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

Issue 273055: Hides the control buttons for browser when maximized on chrome... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
7 7
8 #include "chrome/browser/views/frame/browser_frame.h" 8 #include "chrome/browser/views/frame/browser_frame.h"
9 #include "chrome/browser/views/frame/browser_non_client_frame_view.h" 9 #include "chrome/browser/views/frame/browser_non_client_frame_view.h"
10 #include "chrome/browser/views/tab_icon_view.h" 10 #include "chrome/browser/views/tab_icon_view.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // pixels at its bottom: a dark shadow along the bottom of the titlebar and a 87 // pixels at its bottom: a dark shadow along the bottom of the titlebar and a
88 // client edge. These vary from mode to mode, so this function returns the 88 // client edge. These vary from mode to mode, so this function returns the
89 // number of such pixels the nonclient height includes. 89 // number of such pixels the nonclient height includes.
90 int UnavailablePixelsAtBottomOfNonClientHeight() const; 90 int UnavailablePixelsAtBottomOfNonClientHeight() const;
91 91
92 // Calculates multiple values related to title layout. Returns the height of 92 // Calculates multiple values related to title layout. Returns the height of
93 // the entire titlebar including any connected client edge. 93 // the entire titlebar including any connected client edge.
94 int TitleCoordinates(int* title_top_spacing_ptr, 94 int TitleCoordinates(int* title_top_spacing_ptr,
95 int* title_thickness_ptr) const; 95 int* title_thickness_ptr) const;
96 96
97 // Returns the right edge. This is the end the close button starts at (if a
98 // close button is shown).
99 int RightEdge() const;
100
97 // Calculates multiple values related to icon layout. Returns the size of the 101 // Calculates multiple values related to icon layout. Returns the size of the
98 // icon (along one edge). 102 // icon (along one edge).
99 int IconSize(int* title_top_spacing_ptr, 103 int IconSize(int* title_top_spacing_ptr,
100 int* title_thickness_ptr, 104 int* title_thickness_ptr,
101 int* available_height_ptr) const; 105 int* available_height_ptr) const;
102 106
103 // Paint various sub-components of this view. The *FrameBorder() functions 107 // Paint various sub-components of this view. The *FrameBorder() functions
104 // also paint the background of the titlebar area, since the top frame border 108 // also paint the background of the titlebar area, since the top frame border
105 // and titlebar background are a contiguous component. 109 // and titlebar background are a contiguous component.
106 void PaintRestoredFrameBorder(gfx::Canvas* canvas); 110 void PaintRestoredFrameBorder(gfx::Canvas* canvas);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 157
154 static void InitClass(); 158 static void InitClass();
155 static void InitAppWindowResources(); 159 static void InitAppWindowResources();
156 static SkBitmap* distributor_logo_; 160 static SkBitmap* distributor_logo_;
157 static gfx::Font* title_font_; 161 static gfx::Font* title_font_;
158 162
159 DISALLOW_EVIL_CONSTRUCTORS(OpaqueBrowserFrameView); 163 DISALLOW_EVIL_CONSTRUCTORS(OpaqueBrowserFrameView);
160 }; 164 };
161 165
162 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 166 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698