Chromium Code Reviews| 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 UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ | 5 #ifndef UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ |
| 6 #define UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ | 6 #define UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "ui/base/animation/animation_delegate.h" | 10 #include "ui/base/animation/animation_delegate.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 60 } | 60 } |
| 61 | 61 |
| 62 View* anchor_view() const { return anchor_view_; } | 62 View* anchor_view() const { return anchor_view_; } |
| 63 void set_anchor_view(View* anchor_view) { anchor_view_ = anchor_view; } | 63 void set_anchor_view(View* anchor_view) { anchor_view_ = anchor_view; } |
| 64 | 64 |
| 65 bool use_focusless() const { return use_focusless_; } | 65 bool use_focusless() const { return use_focusless_; } |
| 66 void set_use_focusless(bool use_focusless) { | 66 void set_use_focusless(bool use_focusless) { |
| 67 use_focusless_ = use_focusless; | 67 use_focusless_ = use_focusless; |
| 68 } | 68 } |
| 69 | 69 |
| 70 #if defined(OS_CHROMEOS) | |
| 71 bool show_while_screen_is_locked() const { | |
| 72 return show_while_screen_is_locked_; | |
| 73 } | |
| 74 | |
| 75 void set_show_while_screen_is_locked(bool show) { | |
| 76 show_while_screen_is_locked_ = show; | |
| 77 } | |
| 78 #endif | |
| 79 | |
| 70 // Get the arrow's anchor point in screen space. | 80 // Get the arrow's anchor point in screen space. |
| 71 virtual gfx::Point GetAnchorPoint(); | 81 virtual gfx::Point GetAnchorPoint(); |
| 72 | 82 |
| 73 // Get the arrow's location on the bubble. | 83 // Get the arrow's location on the bubble. |
| 74 virtual BubbleBorder::ArrowLocation GetArrowLocation() const; | 84 virtual BubbleBorder::ArrowLocation GetArrowLocation() const; |
| 75 | 85 |
| 76 // Get the color used for the background and border. | 86 // Get the color used for the background and border. |
| 77 virtual SkColor GetColor() const; | 87 virtual SkColor GetColor() const; |
| 78 | 88 |
| 79 // Show the bubble's widget (and |border_widget_| on Windows). | 89 // Show the bubble's widget (and |border_widget_| on Windows). |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 // Original opacity of the bubble. | 149 // Original opacity of the bubble. |
| 140 int original_opacity_; | 150 int original_opacity_; |
| 141 | 151 |
| 142 // The widget hosting the border for this bubble (non-Aura Windows only). | 152 // The widget hosting the border for this bubble (non-Aura Windows only). |
| 143 Widget* border_widget_; | 153 Widget* border_widget_; |
| 144 | 154 |
| 145 // Create a popup window for focusless bubbles on Linux/ChromeOS. | 155 // Create a popup window for focusless bubbles on Linux/ChromeOS. |
| 146 // These bubbles are not interactive and should not gain focus. | 156 // These bubbles are not interactive and should not gain focus. |
| 147 bool use_focusless_; | 157 bool use_focusless_; |
| 148 | 158 |
| 159 // Whether to show this bubble when screen is locked on ChromeOS. | |
|
Daniel Erat
2011/11/21 23:10:50
still seems weird to me to define this on platform
alicet1
2011/11/22 00:23:53
removed.
| |
| 160 bool show_while_screen_is_locked_; | |
|
Ben Goodger (Google)
2011/11/21 23:12:38
indeed... I think this should be hoisted to the ch
alicet1
2011/11/22 00:23:53
removed.
| |
| 161 | |
| 149 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); | 162 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); |
| 150 }; | 163 }; |
| 151 | 164 |
| 152 } // namespace views | 165 } // namespace views |
| 153 | 166 |
| 154 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ | 167 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ |
| OLD | NEW |