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

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

Issue 10816004: Fixes missing 5 pixel inset for theme background in Ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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_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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/views/window/non_client_view.h" 9 #include "ui/views/window/non_client_view.h"
10 10
(...skipping 24 matching lines...) Expand all
35 AvatarMenuButton* avatar_button() const { return avatar_button_.get(); } 35 AvatarMenuButton* avatar_button() const { return avatar_button_.get(); }
36 36
37 // Returns the bounds within which the TabStrip should be laid out. 37 // Returns the bounds within which the TabStrip should be laid out.
38 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const = 0; 38 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const = 0;
39 39
40 // Returns the TabStripInsets within the window at which the tab strip is 40 // Returns the TabStripInsets within the window at which the tab strip is
41 // positioned. If |as_restored| is true, this is calculated as if we were in 41 // positioned. If |as_restored| is true, this is calculated as if we were in
42 // restored mode regardless of the current mode. 42 // restored mode regardless of the current mode.
43 virtual TabStripInsets GetTabStripInsets(bool force_restored) const = 0; 43 virtual TabStripInsets GetTabStripInsets(bool force_restored) const = 0;
44 44
45 // Returns the amount that the theme background should be inset.
46 virtual int GetThemeBackgroundXInset() const = 0;
47
45 // Updates the throbber. 48 // Updates the throbber.
46 virtual void UpdateThrobber(bool running) = 0; 49 virtual void UpdateThrobber(bool running) = 0;
47 50
48 // Overriden from views::View. 51 // Overriden from views::View.
49 virtual void VisibilityChanged(views::View* starting_from, 52 virtual void VisibilityChanged(views::View* starting_from,
50 bool is_visible) OVERRIDE; 53 bool is_visible) OVERRIDE;
51 54
52 protected: 55 protected:
53 BrowserView* browser_view() const { return browser_view_; } 56 BrowserView* browser_view() const { return browser_view_; }
54 BrowserFrame* frame() const { return frame_; } 57 BrowserFrame* frame() const { return frame_; }
(...skipping 15 matching lines...) Expand all
70 73
71 namespace chrome { 74 namespace chrome {
72 75
73 // Provided by a browser_non_client_frame_view_factory_*.cc implementation 76 // Provided by a browser_non_client_frame_view_factory_*.cc implementation
74 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( 77 BrowserNonClientFrameView* CreateBrowserNonClientFrameView(
75 BrowserFrame* frame, BrowserView* browser_view); 78 BrowserFrame* frame, BrowserView* browser_view);
76 79
77 } // namespace chrome 80 } // namespace chrome
78 81
79 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ 82 #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_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698