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

Side by Side Diff: chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.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_ASH_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_
6 #define CHROME_BROWSER_UI_VIEWS_ASH_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ 6 #define CHROME_BROWSER_UI_VIEWS_ASH_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/search/search_types.h" 10 #include "chrome/browser/ui/search/search_types.h"
(...skipping 20 matching lines...) Expand all
31 static const char kViewClassName[]; 31 static const char kViewClassName[];
32 32
33 BrowserNonClientFrameViewAsh(BrowserFrame* frame, BrowserView* browser_view); 33 BrowserNonClientFrameViewAsh(BrowserFrame* frame, BrowserView* browser_view);
34 virtual ~BrowserNonClientFrameViewAsh(); 34 virtual ~BrowserNonClientFrameViewAsh();
35 35
36 void Init(); 36 void Init();
37 37
38 // BrowserNonClientFrameView overrides: 38 // BrowserNonClientFrameView overrides:
39 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; 39 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE;
40 virtual TabStripInsets GetTabStripInsets(bool force_restored) const OVERRIDE; 40 virtual TabStripInsets GetTabStripInsets(bool force_restored) const OVERRIDE;
41 virtual int GetThemeBackgroundXInset() const OVERRIDE;
41 virtual void UpdateThrobber(bool running) OVERRIDE; 42 virtual void UpdateThrobber(bool running) OVERRIDE;
42 43
43 // views::NonClientFrameView overrides: 44 // views::NonClientFrameView overrides:
44 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 45 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
45 virtual gfx::Rect GetWindowBoundsForClientBounds( 46 virtual gfx::Rect GetWindowBoundsForClientBounds(
46 const gfx::Rect& client_bounds) const OVERRIDE; 47 const gfx::Rect& client_bounds) const OVERRIDE;
47 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 48 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
48 virtual void GetWindowMask(const gfx::Size& size, 49 virtual void GetWindowMask(const gfx::Size& size,
49 gfx::Path* window_mask) OVERRIDE; 50 gfx::Path* window_mask) OVERRIDE;
50 virtual void ResetWindowControls() OVERRIDE; 51 virtual void ResetWindowControls() OVERRIDE;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 scoped_ptr<ash::FramePainter> frame_painter_; 109 scoped_ptr<ash::FramePainter> frame_painter_;
109 110
110 // If true the |size_button_| minimizes, otherwise it toggles between 111 // If true the |size_button_| minimizes, otherwise it toggles between
111 // maximized and restored. 112 // maximized and restored.
112 bool size_button_minimizes_; 113 bool size_button_minimizes_;
113 114
114 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); 115 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh);
115 }; 116 };
116 117
117 #endif // CHROME_BROWSER_UI_VIEWS_ASH_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ 118 #endif // CHROME_BROWSER_UI_VIEWS_ASH_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_frame_view.cc ('k') | chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698