OLD | NEW |
1 // Copyright (c) 2011 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_CHROMEOS_FRAME_BUBBLE_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_FRAME_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/chromeos/frame/bubble_window.h" | 9 #include "chrome/browser/chromeos/frame/bubble_window.h" |
10 #include "ui/views/controls/button/button.h" | 10 #include "ui/views/controls/button/button.h" |
11 #include "ui/views/window/non_client_view.h" | 11 #include "ui/views/window/non_client_view.h" |
(...skipping 30 matching lines...) Expand all Loading... |
42 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 42 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
43 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) | 43 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) |
44 OVERRIDE; | 44 OVERRIDE; |
45 virtual void ResetWindowControls() OVERRIDE; | 45 virtual void ResetWindowControls() OVERRIDE; |
46 virtual void UpdateWindowIcon() OVERRIDE; | 46 virtual void UpdateWindowIcon() OVERRIDE; |
47 | 47 |
48 // View overrides: | 48 // View overrides: |
49 virtual gfx::Insets GetInsets() const OVERRIDE; | 49 virtual gfx::Insets GetInsets() const OVERRIDE; |
50 virtual gfx::Size GetPreferredSize() OVERRIDE; | 50 virtual gfx::Size GetPreferredSize() OVERRIDE; |
51 virtual void Layout() OVERRIDE; | 51 virtual void Layout() OVERRIDE; |
52 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 52 virtual void OnPaint(gfx::CanvasSkia* canvas) OVERRIDE; |
53 | 53 |
54 // Overridden from views::ButtonListener: | 54 // Overridden from views::ButtonListener: |
55 virtual void ButtonPressed(views::Button* sender, const views::Event& event) | 55 virtual void ButtonPressed(views::Button* sender, const views::Event& event) |
56 OVERRIDE; | 56 OVERRIDE; |
57 | 57 |
58 void StartThrobber(); | 58 void StartThrobber(); |
59 void StopThrobber(); | 59 void StopThrobber(); |
60 | 60 |
61 private: | 61 private: |
62 // Allows to tweak appearance of the view. | 62 // Allows to tweak appearance of the view. |
(...skipping 10 matching lines...) Expand all Loading... |
73 | 73 |
74 // Throbber is optional. Employed by STYLE_THROBBER. | 74 // Throbber is optional. Employed by STYLE_THROBBER. |
75 views::Throbber* throbber_; | 75 views::Throbber* throbber_; |
76 | 76 |
77 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); | 77 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); |
78 }; | 78 }; |
79 | 79 |
80 } // namespace chromeos | 80 } // namespace chromeos |
81 | 81 |
82 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_FRAME_VIEW_H_ | 82 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_FRAME_VIEW_H_ |
OLD | NEW |