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

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

Issue 10821002: Makes the min window size include the OTR image and caption buttons on (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 years, 5 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_GLASS_BROWSER_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/ui/views/frame/browser_frame_win.h" 9 #include "chrome/browser/ui/views/frame/browser_frame_win.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"
11 #include "content/public/browser/notification_observer.h" 11 #include "content/public/browser/notification_observer.h"
12 #include "content/public/browser/notification_registrar.h" 12 #include "content/public/browser/notification_registrar.h"
13 #include "ui/views/controls/button/button.h" 13 #include "ui/views/controls/button/button.h"
14 #include "ui/views/window/non_client_view.h" 14 #include "ui/views/window/non_client_view.h"
15 15
16 class BrowserView; 16 class BrowserView;
17 17
18 class GlassBrowserFrameView : public BrowserNonClientFrameView, 18 class GlassBrowserFrameView : public BrowserNonClientFrameView,
19 public content::NotificationObserver { 19 public content::NotificationObserver {
20 public: 20 public:
21 // Constructs a non-client view for an BrowserFrame. 21 // Constructs a non-client view for an BrowserFrame.
22 GlassBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); 22 GlassBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view);
23 virtual ~GlassBrowserFrameView(); 23 virtual ~GlassBrowserFrameView();
24 24
25 // Overridden from BrowserNonClientFrameView: 25 // Overridden from BrowserNonClientFrameView:
26 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; 26 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE;
27 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE; 27 virtual TabStripInsets GetTabStripInsets(bool restored) const OVERRIDE;
28 virtual void UpdateThrobber(bool running) OVERRIDE; 28 virtual void UpdateThrobber(bool running) OVERRIDE;
29 virtual gfx::Size GetMinimumSize() OVERRIDE; 29 virtual gfx::Size GetMinimumSize() OVERRIDE;
30 30
31 // Overridden from views::NonClientFrameView: 31 // Overridden from views::NonClientFrameView:
32 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 32 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
33 virtual gfx::Rect GetWindowBoundsForClientBounds( 33 virtual gfx::Rect GetWindowBoundsForClientBounds(
34 const gfx::Rect& client_bounds) const OVERRIDE; 34 const gfx::Rect& client_bounds) const OVERRIDE;
35 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 35 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
36 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) 36 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask)
37 OVERRIDE { } 37 OVERRIDE { }
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 content::NotificationRegistrar registrar_; 99 content::NotificationRegistrar registrar_;
100 100
101 static const int kThrobberIconCount = 24; 101 static const int kThrobberIconCount = 24;
102 static HICON throbber_icons_[kThrobberIconCount]; 102 static HICON throbber_icons_[kThrobberIconCount];
103 static void InitThrobberIcons(); 103 static void InitThrobberIcons();
104 104
105 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); 105 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView);
106 }; 106 };
107 107
108 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ 108 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view_layout.cc ('k') | chrome/browser/ui/views/frame/glass_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698