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

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

Issue 1412833008: Draw the same portion of the frame background behind the tabstrip in maximized (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@match_frame_alignment
Patch Set: Add comment Created 5 years, 1 month 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
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_BROWSER_NON_CLIENT_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_
7 7
8 #include "chrome/browser/profiles/profile_info_cache_observer.h" 8 #include "chrome/browser/profiles/profile_info_cache_observer.h"
9 #include "ui/views/window/non_client_view.h" 9 #include "ui/views/window/non_client_view.h"
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #endif 42 #endif
43 43
44 // Retrieves the bounds, in non-client view coordinates within which the 44 // Retrieves the bounds, in non-client view coordinates within which the
45 // TabStrip should be laid out. 45 // TabStrip should be laid out.
46 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const = 0; 46 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const = 0;
47 47
48 // Returns the inset of the topmost view in the client view from the top of 48 // Returns the inset of the topmost view in the client view from the top of
49 // the non-client view. The topmost view depends on the window type. The 49 // the non-client view. The topmost view depends on the window type. The
50 // topmost view is the tab strip for tabbed browser windows, the toolbar for 50 // topmost view is the tab strip for tabbed browser windows, the toolbar for
51 // popups, the web contents for app windows and varies for fullscreen windows. 51 // popups, the web contents for app windows and varies for fullscreen windows.
52 virtual int GetTopInset() const = 0; 52 // If |restored| is true, this is calculated as if the window was restored,
53 // regardless of its current state.
54 virtual int GetTopInset(bool restored) const = 0;
53 55
54 // Returns the amount that the theme background should be inset. 56 // Returns the amount that the theme background should be inset.
55 virtual int GetThemeBackgroundXInset() const = 0; 57 virtual int GetThemeBackgroundXInset() const = 0;
56 58
57 // Updates the throbber. 59 // Updates the throbber.
58 virtual void UpdateThrobber(bool running) = 0; 60 virtual void UpdateThrobber(bool running) = 0;
59 61
60 // Updates any toolbar components in the frame. The default implementation 62 // Updates any toolbar components in the frame. The default implementation
61 // does nothing. 63 // does nothing.
62 virtual void UpdateToolbar(); 64 virtual void UpdateToolbar();
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 139
138 namespace chrome { 140 namespace chrome {
139 141
140 // Provided by a browser_non_client_frame_view_factory_*.cc implementation 142 // Provided by a browser_non_client_frame_view_factory_*.cc implementation
141 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( 143 BrowserNonClientFrameView* CreateBrowserNonClientFrameView(
142 BrowserFrame* frame, BrowserView* browser_view); 144 BrowserFrame* frame, BrowserView* browser_view);
143 145
144 } // namespace chrome 146 } // namespace chrome
145 147
146 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ 148 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame.cc ('k') | chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698