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

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

Issue 11308124: Hide new Autofill Popup on Main Widget Resize or Move. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merging to OnWidgetBoundsChanged Created 8 years 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 | « chrome/browser/ui/views/tabs/tab_drag_controller.cc ('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"
11 #include "ui/views/widget/widget_delegate.h" 11 #include "ui/views/widget/widget_delegate.h"
12 #include "ui/views/widget/widget_observer.h" 12 #include "ui/views/widget/widget_observer.h"
13 13
14 namespace gfx {
15 class Rect;
16 }
17
14 namespace ui { 18 namespace ui {
15 class SlideAnimation; 19 class SlideAnimation;
16 } 20 }
17 21
18 namespace views { 22 namespace views {
19 23
20 class BubbleFrameView; 24 class BubbleFrameView;
21 25
22 // BubbleDelegateView creates frame and client views for bubble Widgets. 26 // BubbleDelegateView creates frame and client views for bubble Widgets.
23 // BubbleDelegateView itself is the client's contents view. 27 // BubbleDelegateView itself is the client's contents view.
(...skipping 17 matching lines...) Expand all
41 // WidgetDelegate overrides: 45 // WidgetDelegate overrides:
42 virtual BubbleDelegateView* AsBubbleDelegate() OVERRIDE; 46 virtual BubbleDelegateView* AsBubbleDelegate() OVERRIDE;
43 virtual bool CanActivate() const OVERRIDE; 47 virtual bool CanActivate() const OVERRIDE;
44 virtual View* GetContentsView() OVERRIDE; 48 virtual View* GetContentsView() OVERRIDE;
45 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE; 49 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE;
46 50
47 // WidgetObserver overrides: 51 // WidgetObserver overrides:
48 virtual void OnWidgetClosing(Widget* widget) OVERRIDE; 52 virtual void OnWidgetClosing(Widget* widget) OVERRIDE;
49 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) OVERRIDE; 53 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) OVERRIDE;
50 virtual void OnWidgetActivationChanged(Widget* widget, bool active) OVERRIDE; 54 virtual void OnWidgetActivationChanged(Widget* widget, bool active) OVERRIDE;
51 virtual void OnWidgetMoved(Widget* widget) OVERRIDE; 55 virtual void OnWidgetBoundsChanged(Widget* widget,
56 const gfx::Rect& new_bounds) OVERRIDE;
52 57
53 bool close_on_esc() const { return close_on_esc_; } 58 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; } 59 void set_close_on_esc(bool close_on_esc) { close_on_esc_ = close_on_esc; }
55 60
56 bool close_on_deactivate() const { return close_on_deactivate_; } 61 bool close_on_deactivate() const { return close_on_deactivate_; }
57 void set_close_on_deactivate(bool close_on_deactivate) { 62 void set_close_on_deactivate(bool close_on_deactivate) {
58 close_on_deactivate_ = close_on_deactivate; 63 close_on_deactivate_ = close_on_deactivate;
59 } 64 }
60 65
61 View* anchor_view() const { return anchor_view_; } 66 View* anchor_view() const { return anchor_view_; }
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 212
208 // Parent native window of the bubble. 213 // Parent native window of the bubble.
209 gfx::NativeView parent_window_; 214 gfx::NativeView parent_window_;
210 215
211 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); 216 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView);
212 }; 217 };
213 218
214 } // namespace views 219 } // namespace views
215 220
216 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ 221 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller.cc ('k') | ui/views/bubble/bubble_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698