Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Side by Side Diff: ui/views/bubble/bubble_delegate.h

Issue 10823025: Adding new maximize menu according to spec (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: git try Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/resources/ui_resources.grd ('k') | ui/views/bubble/bubble_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "ui/base/animation/animation_delegate.h" 9 #include "ui/base/animation/animation_delegate.h"
10 #include "ui/views/bubble/bubble_border.h" 10 #include "ui/views/bubble/bubble_border.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void set_margins(const gfx::Insets& margins) { margins_ = margins; } 73 void set_margins(const gfx::Insets& margins) { margins_ = margins; }
74 74
75 gfx::NativeView parent_window() const { return parent_window_; } 75 gfx::NativeView parent_window() const { return parent_window_; }
76 void set_parent_window(gfx::NativeView 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 bool try_mirroring_arrow() const { return try_mirroring_arrow_; }
84 void set_try_mirroring_arrow(bool try_mirroring_arrow) {
85 try_mirroring_arrow_ = try_mirroring_arrow;
86 }
87
83 // Get the arrow's anchor rect in screen space. 88 // Get the arrow's anchor rect in screen space.
84 virtual gfx::Rect GetAnchorRect(); 89 virtual gfx::Rect GetAnchorRect();
85 90
86 // Show the bubble's widget (and |border_widget_| on Windows). 91 // Show the bubble's widget (and |border_widget_| on Windows).
87 void Show(); 92 void Show();
88 93
89 // Fade the bubble in or out via Widget transparency. 94 // Fade the bubble in or out via Widget transparency.
90 // Fade in calls Widget::Show; fade out calls Widget::Close upon completion. 95 // Fade in calls Widget::Show; fade out calls Widget::Close upon completion.
91 void StartFade(bool fade_in); 96 void StartFade(bool fade_in);
92 97
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // Original opacity of the bubble. 165 // Original opacity of the bubble.
161 int original_opacity_; 166 int original_opacity_;
162 167
163 // The widget hosting the border for this bubble (non-Aura Windows only). 168 // The widget hosting the border for this bubble (non-Aura Windows only).
164 Widget* border_widget_; 169 Widget* border_widget_;
165 170
166 // Create a popup window for focusless bubbles on Linux/ChromeOS. 171 // Create a popup window for focusless bubbles on Linux/ChromeOS.
167 // These bubbles are not interactive and should not gain focus. 172 // These bubbles are not interactive and should not gain focus.
168 bool use_focusless_; 173 bool use_focusless_;
169 174
175 // If true (defaults to true), the arrow may be mirrored to fit the
176 // bubble on screen better.
177 bool try_mirroring_arrow_;
178
170 // Parent native window of the bubble. 179 // Parent native window of the bubble.
171 gfx::NativeView parent_window_; 180 gfx::NativeView parent_window_;
172 181
173 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); 182 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView);
174 }; 183 };
175 184
176 } // namespace views 185 } // namespace views
177 186
178 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ 187 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/resources/ui_resources.grd ('k') | ui/views/bubble/bubble_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698