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 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 void set_arrow_location(BubbleBorder::ArrowLocation arrow_location) { | 65 void set_arrow_location(BubbleBorder::ArrowLocation arrow_location) { |
66 arrow_location_ = arrow_location; | 66 arrow_location_ = arrow_location; |
67 } | 67 } |
68 | 68 |
69 SkColor color() const { return color_; } | 69 SkColor color() const { return color_; } |
70 void set_color(SkColor color) { color_ = color; } | 70 void set_color(SkColor color) { color_ = color; } |
71 | 71 |
72 int margin() const { return margin_; } | 72 int margin() const { return margin_; } |
73 void set_margin(int margin) { margin_ = margin; } | 73 void set_margin(int margin) { margin_ = margin; } |
74 | 74 |
75 gfx::NativeWindow parent_window() const { return parent_window_; } | 75 gfx::NativeView parent_window() const { return parent_window_; } |
76 void set_parent_window(gfx::NativeWindow window) { parent_window_ = window; } | 76 void set_parent_window(gfx::NativeView window) { parent_window_ = window; } |
77 | 77 |
78 bool use_focusless() const { return use_focusless_; } | 78 bool use_focusless() const { return use_focusless_; } |
79 void set_use_focusless(bool use_focusless) { | 79 void set_use_focusless(bool use_focusless) { |
80 use_focusless_ = use_focusless; | 80 use_focusless_ = use_focusless; |
81 } | 81 } |
82 | 82 |
83 // Get the arrow's anchor rect in screen space. | 83 // Get the arrow's anchor rect in screen space. |
84 virtual gfx::Rect GetAnchorRect(); | 84 virtual gfx::Rect GetAnchorRect(); |
85 | 85 |
86 // Show the bubble's widget (and |border_widget_| on Windows). | 86 // Show the bubble's widget (and |border_widget_| on Windows). |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 int original_opacity_; | 149 int original_opacity_; |
150 | 150 |
151 // The widget hosting the border for this bubble (non-Aura Windows only). | 151 // The widget hosting the border for this bubble (non-Aura Windows only). |
152 Widget* border_widget_; | 152 Widget* border_widget_; |
153 | 153 |
154 // Create a popup window for focusless bubbles on Linux/ChromeOS. | 154 // Create a popup window for focusless bubbles on Linux/ChromeOS. |
155 // These bubbles are not interactive and should not gain focus. | 155 // These bubbles are not interactive and should not gain focus. |
156 bool use_focusless_; | 156 bool use_focusless_; |
157 | 157 |
158 // Parent native window of the bubble. | 158 // Parent native window of the bubble. |
159 gfx::NativeWindow parent_window_; | 159 gfx::NativeView parent_window_; |
160 | 160 |
161 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); | 161 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); |
162 }; | 162 }; |
163 | 163 |
164 } // namespace views | 164 } // namespace views |
165 | 165 |
166 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ | 166 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ |
OLD | NEW |