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

Side by Side Diff: chrome/browser/ui/views/frame/opaque_browser_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_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/views/frame/browser_frame.h" 9 #include "chrome/browser/ui/views/frame/browser_frame.h"
10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" 10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
(...skipping 16 matching lines...) Expand all
27 public views::ButtonListener, 27 public views::ButtonListener,
28 public chrome::TabIconViewModel { 28 public chrome::TabIconViewModel {
29 public: 29 public:
30 // Constructs a non-client view for an BrowserFrame. 30 // Constructs a non-client view for an BrowserFrame.
31 OpaqueBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); 31 OpaqueBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view);
32 virtual ~OpaqueBrowserFrameView(); 32 virtual ~OpaqueBrowserFrameView();
33 33
34 // Overridden from BrowserNonClientFrameView: 34 // Overridden from BrowserNonClientFrameView:
35 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; 35 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE;
36 virtual TabStripInsets GetTabStripInsets(bool restored) const OVERRIDE; 36 virtual TabStripInsets GetTabStripInsets(bool restored) const OVERRIDE;
37 virtual int GetThemeBackgroundXInset() const OVERRIDE;
37 virtual void UpdateThrobber(bool running) OVERRIDE; 38 virtual void UpdateThrobber(bool running) OVERRIDE;
38 virtual gfx::Size GetMinimumSize() OVERRIDE; 39 virtual gfx::Size GetMinimumSize() OVERRIDE;
39 40
40 protected: 41 protected:
41 views::ImageButton* minimize_button() const { return minimize_button_; } 42 views::ImageButton* minimize_button() const { return minimize_button_; }
42 views::ImageButton* maximize_button() const { return maximize_button_; } 43 views::ImageButton* maximize_button() const { return maximize_button_; }
43 views::ImageButton* restore_button() const { return restore_button_; } 44 views::ImageButton* restore_button() const { return restore_button_; }
44 views::ImageButton* close_button() const { return close_button_; } 45 views::ImageButton* close_button() const { return close_button_; }
45 46
46 // Used to allow subclasses to reserve height for other components they 47 // Used to allow subclasses to reserve height for other components they
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 168
168 content::NotificationRegistrar registrar_; 169 content::NotificationRegistrar registrar_;
169 170
170 // Background painter for the window frame. 171 // Background painter for the window frame.
171 scoped_ptr<views::FrameBackground> frame_background_; 172 scoped_ptr<views::FrameBackground> frame_background_;
172 173
173 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); 174 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView);
174 }; 175 };
175 176
176 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 177 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.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