OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/ui/views/frame/browser_frame.h" | 10 #include "chrome/browser/ui/views/frame/browser_frame.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // Overridden from views::ButtonListener: | 94 // Overridden from views::ButtonListener: |
95 virtual void ButtonPressed(views::Button* sender, const views::Event& event) | 95 virtual void ButtonPressed(views::Button* sender, const views::Event& event) |
96 OVERRIDE; | 96 OVERRIDE; |
97 | 97 |
98 // Overridden from TabIconView::TabIconViewModel: | 98 // Overridden from TabIconView::TabIconViewModel: |
99 virtual bool ShouldTabIconViewAnimate() const OVERRIDE; | 99 virtual bool ShouldTabIconViewAnimate() const OVERRIDE; |
100 virtual SkBitmap GetFaviconForTabIconView() OVERRIDE; | 100 virtual SkBitmap GetFaviconForTabIconView() OVERRIDE; |
101 | 101 |
102 protected: | 102 protected: |
103 // NotificationObserver implementation: | 103 // NotificationObserver implementation: |
104 virtual void Observe(NotificationType type, | 104 virtual void Observe(int type, |
105 const NotificationSource& source, | 105 const NotificationSource& source, |
106 const NotificationDetails& details) OVERRIDE; | 106 const NotificationDetails& details) OVERRIDE; |
107 | 107 |
108 private: | 108 private: |
109 // Returns the thickness of the border that makes up the window frame edges. | 109 // Returns the thickness of the border that makes up the window frame edges. |
110 // This does not include any client edge. If |restored| is true, acts as if | 110 // This does not include any client edge. If |restored| is true, acts as if |
111 // the window is restored regardless of the real mode. | 111 // the window is restored regardless of the real mode. |
112 int FrameBorderThickness(bool restored) const; | 112 int FrameBorderThickness(bool restored) const; |
113 | 113 |
114 // Returns the height of the top resize area. This is smaller than the frame | 114 // Returns the height of the top resize area. This is smaller than the frame |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 // Menu button that displays that either the incognito icon or the profile | 188 // Menu button that displays that either the incognito icon or the profile |
189 // icon. | 189 // icon. |
190 scoped_ptr<AvatarMenuButton> avatar_button_; | 190 scoped_ptr<AvatarMenuButton> avatar_button_; |
191 | 191 |
192 NotificationRegistrar registrar_; | 192 NotificationRegistrar registrar_; |
193 | 193 |
194 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); | 194 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); |
195 }; | 195 }; |
196 | 196 |
197 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 197 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |