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

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

Issue 863173004: More class names for views class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 11 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_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/views/bubble/bubble_border.h" 9 #include "ui/views/bubble/bubble_border.h"
10 #include "ui/views/widget/widget.h" 10 #include "ui/views/widget/widget.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 { 14 namespace gfx {
15 class FontList; 15 class FontList;
16 class Rect; 16 class Rect;
17 } 17 }
18 18
19 namespace views { 19 namespace views {
20 20
21 class BubbleFrameView; 21 class BubbleFrameView;
22 22
23 // BubbleDelegateView creates frame and client views for bubble Widgets. 23 // BubbleDelegateView creates frame and client views for bubble Widgets.
24 // BubbleDelegateView itself is the client's contents view. 24 // BubbleDelegateView itself is the client's contents view.
25 class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView, 25 class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
26 public WidgetObserver { 26 public WidgetObserver {
27 public: 27 public:
28 // Internal class name.
29 static const char kViewClassName[];
30
28 BubbleDelegateView(); 31 BubbleDelegateView();
29 BubbleDelegateView(View* anchor_view, BubbleBorder::Arrow arrow); 32 BubbleDelegateView(View* anchor_view, BubbleBorder::Arrow arrow);
30 ~BubbleDelegateView() override; 33 ~BubbleDelegateView() override;
31 34
32 // Create and initialize the bubble Widget(s) with proper bounds. 35 // Create and initialize the bubble Widget(s) with proper bounds.
33 static Widget* CreateBubble(BubbleDelegateView* bubble_delegate); 36 static Widget* CreateBubble(BubbleDelegateView* bubble_delegate);
34 37
35 // WidgetDelegateView overrides: 38 // WidgetDelegateView overrides:
36 BubbleDelegateView* AsBubbleDelegate() override; 39 BubbleDelegateView* AsBubbleDelegate() override;
37 bool ShouldShowCloseButton() const override; 40 bool ShouldShowCloseButton() const override;
38 View* GetContentsView() override; 41 View* GetContentsView() override;
39 NonClientFrameView* CreateNonClientFrameView(Widget* widget) override; 42 NonClientFrameView* CreateNonClientFrameView(Widget* widget) override;
40 void GetAccessibleState(ui::AXViewState* state) override; 43 void GetAccessibleState(ui::AXViewState* state) override;
44 const char* GetClassName() const override;
41 45
42 // WidgetObserver overrides: 46 // WidgetObserver overrides:
43 void OnWidgetDestroying(Widget* widget) override; 47 void OnWidgetDestroying(Widget* widget) override;
44 void OnWidgetVisibilityChanging(Widget* widget, bool visible) override; 48 void OnWidgetVisibilityChanging(Widget* widget, bool visible) override;
45 void OnWidgetVisibilityChanged(Widget* widget, bool visible) override; 49 void OnWidgetVisibilityChanged(Widget* widget, bool visible) override;
46 void OnWidgetActivationChanged(Widget* widget, bool active) override; 50 void OnWidgetActivationChanged(Widget* widget, bool active) override;
47 void OnWidgetBoundsChanged(Widget* widget, 51 void OnWidgetBoundsChanged(Widget* widget,
48 const gfx::Rect& new_bounds) override; 52 const gfx::Rect& new_bounds) override;
49 53
50 bool close_on_esc() const { return close_on_esc_; } 54 bool close_on_esc() const { return close_on_esc_; }
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 191
188 // Parent native window of the bubble. 192 // Parent native window of the bubble.
189 gfx::NativeView parent_window_; 193 gfx::NativeView parent_window_;
190 194
191 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView); 195 DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView);
192 }; 196 };
193 197
194 } // namespace views 198 } // namespace views
195 199
196 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ 200 #endif // UI_VIEWS_BUBBLE_BUBBLE_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/bubble/bubble_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698