| 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_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" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 DialogStyle style); | 35 DialogStyle style); |
| 36 virtual ~BubbleFrameView(); | 36 virtual ~BubbleFrameView(); |
| 37 | 37 |
| 38 // Overridden from views::NonClientFrameView: | 38 // Overridden from views::NonClientFrameView: |
| 39 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 39 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
| 40 virtual gfx::Rect GetWindowBoundsForClientBounds( | 40 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 41 const gfx::Rect& client_bounds) const OVERRIDE; | 41 const gfx::Rect& client_bounds) const OVERRIDE; |
| 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 EnableClose(bool enable) OVERRIDE; |
| 45 virtual void ResetWindowControls() OVERRIDE; | 46 virtual void ResetWindowControls() OVERRIDE; |
| 46 virtual void UpdateWindowIcon() OVERRIDE; | 47 virtual void UpdateWindowIcon() OVERRIDE; |
| 47 | 48 |
| 48 // View overrides: | 49 // View overrides: |
| 49 virtual gfx::Insets GetInsets() const OVERRIDE; | 50 virtual gfx::Insets GetInsets() const OVERRIDE; |
| 50 virtual gfx::Size GetPreferredSize() OVERRIDE; | 51 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 51 virtual void Layout() OVERRIDE; | 52 virtual void Layout() OVERRIDE; |
| 52 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 53 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 53 | 54 |
| 54 // Overridden from views::ButtonListener: | 55 // Overridden from views::ButtonListener: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 73 | 74 |
| 74 // Throbber is optional. Employed by STYLE_THROBBER. | 75 // Throbber is optional. Employed by STYLE_THROBBER. |
| 75 views::Throbber* throbber_; | 76 views::Throbber* throbber_; |
| 76 | 77 |
| 77 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); | 78 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 } // namespace chromeos | 81 } // namespace chromeos |
| 81 | 82 |
| 82 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_FRAME_VIEW_H_ | 83 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_FRAME_VIEW_H_ |
| OLD | NEW |