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

Side by Side Diff: ui/views/window/dialog_delegate.h

Issue 2478863003: Fix the Web Bluetooth chooser when it is used on Chrome apps on non-Mac (Closed)
Patch Set: initialize pointer to be nullptr Created 4 years, 1 month 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
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_WINDOW_DIALOG_DELEGATE_H_ 5 #ifndef UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
6 #define UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 6 #define UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; 95 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
96 bool IsDialogButtonEnabled(ui::DialogButton button) const override; 96 bool IsDialogButtonEnabled(ui::DialogButton button) const override;
97 97
98 // Overridden from WidgetDelegate: 98 // Overridden from WidgetDelegate:
99 View* GetInitiallyFocusedView() override; 99 View* GetInitiallyFocusedView() override;
100 DialogDelegate* AsDialogDelegate() override; 100 DialogDelegate* AsDialogDelegate() override;
101 ClientView* CreateClientView(Widget* widget) override; 101 ClientView* CreateClientView(Widget* widget) override;
102 NonClientFrameView* CreateNonClientFrameView(Widget* widget) override; 102 NonClientFrameView* CreateNonClientFrameView(Widget* widget) override;
103 103
104 // Create a frame view using the new dialog style. 104 // Create a frame view using the new dialog style.
105 static NonClientFrameView* CreateDialogFrameView(Widget* widget); 105 // |content_margins|: margins between the content and the inside of the
106 // border, in pixels.
107 static NonClientFrameView* CreateDialogFrameView(
108 Widget* widget,
109 const gfx::Insets& content_margins);
106 110
107 // Returns true if this particular dialog should use a Chrome-styled frame 111 // Returns true if this particular dialog should use a Chrome-styled frame
108 // like the one used for bubbles. The alternative is a more platform-native 112 // like the one used for bubbles. The alternative is a more platform-native
109 // frame. 113 // frame.
110 virtual bool ShouldUseCustomFrame() const; 114 virtual bool ShouldUseCustomFrame() const;
111 115
112 // A helper for accessing the DialogClientView object contained by this 116 // A helper for accessing the DialogClientView object contained by this
113 // delegate's Window. 117 // delegate's Window.
114 const DialogClientView* GetDialogClientView() const; 118 const DialogClientView* GetDialogClientView() const;
115 DialogClientView* GetDialogClientView(); 119 DialogClientView* GetDialogClientView();
(...skipping 29 matching lines...) Expand all
145 void ViewHierarchyChanged( 149 void ViewHierarchyChanged(
146 const ViewHierarchyChangedDetails& details) override; 150 const ViewHierarchyChangedDetails& details) override;
147 151
148 private: 152 private:
149 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); 153 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView);
150 }; 154 };
151 155
152 } // namespace views 156 } // namespace views
153 157
154 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 158 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc ('k') | ui/views/window/dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698