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

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

Issue 1919213002: Share DialogDelegateView:: and BubbleDialogDelegateView::'s impls of (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | ui/views/bubble/bubble_dialog_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_DIALOG_DELEGATE_H_ 5 #ifndef UI_VIEWS_BUBBLE_BUBBLE_DIALOG_DELEGATE_H_
6 #define UI_VIEWS_BUBBLE_BUBBLE_DIALOG_DELEGATE_H_ 6 #define UI_VIEWS_BUBBLE_BUBBLE_DIALOG_DELEGATE_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/views/bubble/bubble_border.h" 10 #include "ui/views/bubble/bubble_border.h"
(...skipping 26 matching lines...) Expand all
37 ~BubbleDialogDelegateView() override; 37 ~BubbleDialogDelegateView() override;
38 38
39 // Create and initialize the bubble Widget(s) with proper bounds. 39 // Create and initialize the bubble Widget(s) with proper bounds.
40 static Widget* CreateBubble(BubbleDialogDelegateView* bubble_delegate); 40 static Widget* CreateBubble(BubbleDialogDelegateView* bubble_delegate);
41 41
42 // WidgetDelegateView overrides: 42 // WidgetDelegateView overrides:
43 BubbleDialogDelegateView* AsBubbleDialogDelegate() override; 43 BubbleDialogDelegateView* AsBubbleDialogDelegate() override;
44 bool ShouldShowCloseButton() const override; 44 bool ShouldShowCloseButton() const override;
45 ClientView* CreateClientView(Widget* widget) override; 45 ClientView* CreateClientView(Widget* widget) override;
46 NonClientFrameView* CreateNonClientFrameView(Widget* widget) override; 46 NonClientFrameView* CreateNonClientFrameView(Widget* widget) override;
47 void GetAccessibleState(ui::AXViewState* state) override;
48 const char* GetClassName() const override; 47 const char* GetClassName() const override;
49 48
50 // WidgetObserver overrides: 49 // WidgetObserver overrides:
51 void OnWidgetDestroying(Widget* widget) override; 50 void OnWidgetDestroying(Widget* widget) override;
52 void OnWidgetVisibilityChanging(Widget* widget, bool visible) override; 51 void OnWidgetVisibilityChanging(Widget* widget, bool visible) override;
53 void OnWidgetVisibilityChanged(Widget* widget, bool visible) override; 52 void OnWidgetVisibilityChanged(Widget* widget, bool visible) override;
54 void OnWidgetActivationChanged(Widget* widget, bool active) override; 53 void OnWidgetActivationChanged(Widget* widget, bool active) override;
55 void OnWidgetBoundsChanged(Widget* widget, 54 void OnWidgetBoundsChanged(Widget* widget,
56 const gfx::Rect& new_bounds) override; 55 const gfx::Rect& new_bounds) override;
57 56
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 195
197 // Parent native window of the bubble. 196 // Parent native window of the bubble.
198 gfx::NativeView parent_window_; 197 gfx::NativeView parent_window_;
199 198
200 DISALLOW_COPY_AND_ASSIGN(BubbleDialogDelegateView); 199 DISALLOW_COPY_AND_ASSIGN(BubbleDialogDelegateView);
201 }; 200 };
202 201
203 } // namespace views 202 } // namespace views
204 203
205 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE2_H_ 204 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE2_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/bubble/bubble_dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698