| OLD | NEW |
| 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_STATUS_BUBBLE_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_STATUS_BUBBLE_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_STATUS_BUBBLE_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_STATUS_BUBBLE_VIEWS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // the font and kTotalVerticalPadding. | 47 // the font and kTotalVerticalPadding. |
| 48 gfx::Size GetPreferredSize(); | 48 gfx::Size GetPreferredSize(); |
| 49 | 49 |
| 50 // Calculate and set new position for status bubble. | 50 // Calculate and set new position for status bubble. |
| 51 void Reposition(); | 51 void Reposition(); |
| 52 | 52 |
| 53 // Set bubble to new width. | 53 // Set bubble to new width. |
| 54 void SetBubbleWidth(int width); | 54 void SetBubbleWidth(int width); |
| 55 | 55 |
| 56 // Overridden from StatusBubble: | 56 // Overridden from StatusBubble: |
| 57 virtual void SetStatus(const base::string16& status) OVERRIDE; | 57 virtual void SetStatus(const base::string16& status) override; |
| 58 virtual void SetURL(const GURL& url, const std::string& languages) OVERRIDE; | 58 virtual void SetURL(const GURL& url, const std::string& languages) override; |
| 59 virtual void Hide() OVERRIDE; | 59 virtual void Hide() override; |
| 60 virtual void MouseMoved(const gfx::Point& location, | 60 virtual void MouseMoved(const gfx::Point& location, |
| 61 bool left_content) OVERRIDE; | 61 bool left_content) override; |
| 62 virtual void UpdateDownloadShelfVisibility(bool visible) OVERRIDE; | 62 virtual void UpdateDownloadShelfVisibility(bool visible) override; |
| 63 | 63 |
| 64 views::Widget* GetPopupForTest() { return popup(); } | 64 views::Widget* GetPopupForTest() { return popup(); } |
| 65 | 65 |
| 66 protected: | 66 protected: |
| 67 views::Widget* popup() { return popup_.get(); } | 67 views::Widget* popup() { return popup_.get(); } |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 class StatusView; | 70 class StatusView; |
| 71 class StatusViewAnimation; | 71 class StatusViewAnimation; |
| 72 class StatusViewExpander; | 72 class StatusViewExpander; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // change size immediately, with no hover. | 144 // change size immediately, with no hover. |
| 145 bool is_expanded_; | 145 bool is_expanded_; |
| 146 | 146 |
| 147 // Times expansion of status bubble when URL is too long for standard width. | 147 // Times expansion of status bubble when URL is too long for standard width. |
| 148 base::WeakPtrFactory<StatusBubbleViews> expand_timer_factory_; | 148 base::WeakPtrFactory<StatusBubbleViews> expand_timer_factory_; |
| 149 | 149 |
| 150 DISALLOW_COPY_AND_ASSIGN(StatusBubbleViews); | 150 DISALLOW_COPY_AND_ASSIGN(StatusBubbleViews); |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_BUBBLE_VIEWS_H_ | 153 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_BUBBLE_VIEWS_H_ |
| OLD | NEW |