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

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

Issue 554183002: Update the maximize button when size constraints change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update NativeWidgetMac. Created 6 years, 3 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
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_non_client_frame_view.h" 9 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
10 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
(...skipping 21 matching lines...) Expand all
32 // views::NonClientFrameView: 32 // views::NonClientFrameView:
33 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 33 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
34 virtual gfx::Rect GetWindowBoundsForClientBounds( 34 virtual gfx::Rect GetWindowBoundsForClientBounds(
35 const gfx::Rect& client_bounds) const OVERRIDE; 35 const gfx::Rect& client_bounds) const OVERRIDE;
36 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 36 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
37 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) 37 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask)
38 OVERRIDE {} 38 OVERRIDE {}
39 virtual void ResetWindowControls() OVERRIDE {} 39 virtual void ResetWindowControls() OVERRIDE {}
40 virtual void UpdateWindowIcon() OVERRIDE {} 40 virtual void UpdateWindowIcon() OVERRIDE {}
41 virtual void UpdateWindowTitle() OVERRIDE {} 41 virtual void UpdateWindowTitle() OVERRIDE {}
42 virtual void SizeConstraintsChanged() OVERRIDE {}
42 43
43 protected: 44 protected:
44 // views::View: 45 // views::View:
45 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 46 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
46 virtual void Layout() OVERRIDE; 47 virtual void Layout() OVERRIDE;
47 48
48 // views::ButtonListener: 49 // views::ButtonListener:
49 virtual void ButtonPressed(views::Button* sender, 50 virtual void ButtonPressed(views::Button* sender,
50 const ui::Event& event) OVERRIDE; 51 const ui::Event& event) OVERRIDE;
51 52
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 content::NotificationRegistrar registrar_; 109 content::NotificationRegistrar registrar_;
109 110
110 static const int kThrobberIconCount = 24; 111 static const int kThrobberIconCount = 24;
111 static HICON throbber_icons_[kThrobberIconCount]; 112 static HICON throbber_icons_[kThrobberIconCount];
112 static void InitThrobberIcons(); 113 static void InitThrobberIcons();
113 114
114 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); 115 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView);
115 }; 116 };
116 117
117 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ 118 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698