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

Side by Side Diff: ui/views/window/custom_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: Created 7 years 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 UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ 5 #ifndef UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
6 #define UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ 6 #define UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 int TitlebarBottomThickness() const; 79 int TitlebarBottomThickness() const;
80 80
81 // Returns the size of the titlebar icon. This is used even when the icon is 81 // Returns the size of the titlebar icon. This is used even when the icon is
82 // not shown, e.g. to set the titlebar height. 82 // not shown, e.g. to set the titlebar height.
83 int IconSize() const; 83 int IconSize() const;
84 84
85 // Returns the bounds of the titlebar icon (or where the icon would be if 85 // Returns the bounds of the titlebar icon (or where the icon would be if
86 // there was one). 86 // there was one).
87 gfx::Rect IconBounds() const; 87 gfx::Rect IconBounds() const;
88 88
89 // Returns true if the title bar, caption buttons, and frame border should be
90 // drawn. If false, the client view occupies the full area of this view.
91 bool ShouldShowTitleBarAndBorder() const;
92
89 // Returns true if the client edge should be drawn. This is true if 93 // Returns true if the client edge should be drawn. This is true if
90 // the window is not maximized. 94 // the window is not maximized.
91 bool ShouldShowClientEdge() const; 95 bool ShouldShowClientEdge() const;
92 96
93 // Paint various sub-components of this view. 97 // Paint various sub-components of this view.
94 void PaintRestoredFrameBorder(gfx::Canvas* canvas); 98 void PaintRestoredFrameBorder(gfx::Canvas* canvas);
95 void PaintMaximizedFrameBorder(gfx::Canvas* canvas); 99 void PaintMaximizedFrameBorder(gfx::Canvas* canvas);
96 void PaintTitleBar(gfx::Canvas* canvas); 100 void PaintTitleBar(gfx::Canvas* canvas);
97 void PaintRestoredClientEdge(gfx::Canvas* canvas); 101 void PaintRestoredClientEdge(gfx::Canvas* canvas);
98 102
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 139
136 // Background painter for the window frame. 140 // Background painter for the window frame.
137 scoped_ptr<FrameBackground> frame_background_; 141 scoped_ptr<FrameBackground> frame_background_;
138 142
139 DISALLOW_COPY_AND_ASSIGN(CustomFrameView); 143 DISALLOW_COPY_AND_ASSIGN(CustomFrameView);
140 }; 144 };
141 145
142 } // namespace views 146 } // namespace views
143 147
144 #endif // UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ 148 #endif // UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/window/custom_frame_view.cc » ('j') | ui/views/window/custom_frame_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698