| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/weak_ptr.h" |
| 12 #include "base/string16.h" | 13 #include "base/string16.h" |
| 13 #include "base/task.h" | |
| 14 #include "chrome/browser/ui/status_bubble.h" | 14 #include "chrome/browser/ui/status_bubble.h" |
| 15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
| 16 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
| 17 | 17 |
| 18 namespace gfx { | 18 namespace gfx { |
| 19 class Point; | 19 class Point; |
| 20 } | 20 } |
| 21 namespace views { | 21 namespace views { |
| 22 class View; | 22 class View; |
| 23 class Widget; | 23 class Widget; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 scoped_ptr<StatusViewExpander> expand_view_; | 125 scoped_ptr<StatusViewExpander> expand_view_; |
| 126 | 126 |
| 127 // If the download shelf is visible, do not obscure it. | 127 // If the download shelf is visible, do not obscure it. |
| 128 bool download_shelf_is_visible_; | 128 bool download_shelf_is_visible_; |
| 129 | 129 |
| 130 // If the bubble has already been expanded, and encounters a new URL, | 130 // If the bubble has already been expanded, and encounters a new URL, |
| 131 // change size immediately, with no hover. | 131 // change size immediately, with no hover. |
| 132 bool is_expanded_; | 132 bool is_expanded_; |
| 133 | 133 |
| 134 // Times expansion of status bubble when URL is too long for standard width. | 134 // Times expansion of status bubble when URL is too long for standard width. |
| 135 ScopedRunnableMethodFactory<StatusBubbleViews> expand_timer_factory_; | 135 base::WeakPtrFactory<StatusBubbleViews> expand_timer_factory_; |
| 136 | 136 |
| 137 DISALLOW_COPY_AND_ASSIGN(StatusBubbleViews); | 137 DISALLOW_COPY_AND_ASSIGN(StatusBubbleViews); |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_BUBBLE_VIEWS_H_ | 140 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_BUBBLE_VIEWS_H_ |
| OLD | NEW |