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

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

Issue 10021029: Propagate OnNativeWidgetMove to delegate/observers, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use |move_loop_widget_| and GetAttachedBrowserView, etc. Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_browser.gypi ('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 #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 29 matching lines...) Expand all
40 static Widget* CreateBubble(BubbleDelegateView* bubble_delegate); 40 static Widget* CreateBubble(BubbleDelegateView* bubble_delegate);
41 41
42 // WidgetDelegate overrides: 42 // WidgetDelegate overrides:
43 virtual View* GetInitiallyFocusedView() OVERRIDE; 43 virtual View* GetInitiallyFocusedView() OVERRIDE;
44 virtual BubbleDelegateView* AsBubbleDelegate() OVERRIDE; 44 virtual BubbleDelegateView* AsBubbleDelegate() OVERRIDE;
45 virtual View* GetContentsView() OVERRIDE; 45 virtual View* GetContentsView() OVERRIDE;
46 virtual NonClientFrameView* CreateNonClientFrameView( 46 virtual NonClientFrameView* CreateNonClientFrameView(
47 views::Widget* widget) OVERRIDE; 47 views::Widget* widget) OVERRIDE;
48 48
49 // Widget::Observer overrides: 49 // Widget::Observer overrides:
50 virtual void OnWidgetClosing(Widget* widget) OVERRIDE;
50 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) OVERRIDE; 51 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) OVERRIDE;
51 virtual void OnWidgetActivationChanged(Widget* widget, bool active) OVERRIDE; 52 virtual void OnWidgetActivationChanged(Widget* widget, bool active) OVERRIDE;
53 virtual void OnWidgetMove(Widget* widget) OVERRIDE;
52 54
53 bool close_on_esc() const { return close_on_esc_; } 55 bool close_on_esc() const { return close_on_esc_; }
54 void set_close_on_esc(bool close_on_esc) { close_on_esc_ = close_on_esc; } 56 void set_close_on_esc(bool close_on_esc) { close_on_esc_ = close_on_esc; }
55 57
56 bool close_on_deactivate() const { return close_on_deactivate_; } 58 bool close_on_deactivate() const { return close_on_deactivate_; }
57 void set_close_on_deactivate(bool close_on_deactivate) { 59 void set_close_on_deactivate(bool close_on_deactivate) {
58 close_on_deactivate_ = close_on_deactivate; 60 close_on_deactivate_ = close_on_deactivate;
59 } 61 }
60 62
61 View* anchor_view() const { return anchor_view_; } 63 View* anchor_view() const { return anchor_view_; }
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 159
158 // Parent native window of the bubble. 160 // Parent native window of the bubble.
159 gfx::NativeView parent_window_; 161 gfx::NativeView parent_window_;
160 162
161 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); 163 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView);
162 }; 164 };
163 165
164 } // namespace views 166 } // namespace views
165 167
166 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ 168 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | ui/views/bubble/bubble_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698