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

Side by Side Diff: chrome/browser/chromeos/ui/choose_mobile_network_dialog.h

Issue 2446573003: chromeos: Make "mobile network" and "set time" dialogs work with mash (Closed)
Patch Set: cleanup 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_CHROMEOS_UI_CHOOSE_MOBILE_NETWORK_DIALOG_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_UI_CHOOSE_MOBILE_NETWORK_DIALOG_H_
6 #define CHROME_BROWSER_CHROMEOS_UI_CHOOSE_MOBILE_NETWORK_DIALOG_H_ 6 #define CHROME_BROWSER_CHROMEOS_UI_CHOOSE_MOBILE_NETWORK_DIALOG_H_
7 7
8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 8 #include "base/macros.h"
10 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
11 #include "ui/web_dialogs/web_dialog_delegate.h" 10 #include "ui/web_dialogs/web_dialog_delegate.h"
12 11
13 namespace chromeos { 12 namespace chromeos {
14 13
15 // Dialog for manual selection of cellular network. 14 // Dialog for manual selection of cellular network.
16 class ChooseMobileNetworkDialog : public ui::WebDialogDelegate { 15 class ChooseMobileNetworkDialog : public ui::WebDialogDelegate {
17 public: 16 public:
18 // Shows the dialog box. 17 // Shows the dialog box. |owning_window| may be null.
msw 2016/10/24 22:18:09 nit: Maybe explain the significance of |owning_win
James Cook 2016/10/25 00:29:04 Done (and renamed to parent).
19 static void ShowDialog(gfx::NativeWindow owning_window); 18 static void ShowDialog(gfx::NativeWindow owning_window);
20 19
20 // Shows the dialog in an ash window container.
21 static void ShowDialogInContainer(int container_id);
22
21 private: 23 private:
22 ChooseMobileNetworkDialog(); 24 ChooseMobileNetworkDialog();
23 25
24 // Overridden from ui::WebDialogDelegate: 26 // Overridden from ui::WebDialogDelegate:
25 ui::ModalType GetDialogModalType() const override; 27 ui::ModalType GetDialogModalType() const override;
26 base::string16 GetDialogTitle() const override; 28 base::string16 GetDialogTitle() const override;
27 GURL GetDialogContentURL() const override; 29 GURL GetDialogContentURL() const override;
28 void GetWebUIMessageHandlers( 30 void GetWebUIMessageHandlers(
29 std::vector<content::WebUIMessageHandler*>* handlers) const override; 31 std::vector<content::WebUIMessageHandler*>* handlers) const override;
30 void GetDialogSize(gfx::Size* size) const override; 32 void GetDialogSize(gfx::Size* size) const override;
31 std::string GetDialogArgs() const override; 33 std::string GetDialogArgs() const override;
32 void OnDialogClosed(const std::string& json_retval) override; 34 void OnDialogClosed(const std::string& json_retval) override;
33 void OnCloseContents(content::WebContents* source, 35 void OnCloseContents(content::WebContents* source,
34 bool* out_close_dialog) override; 36 bool* out_close_dialog) override;
35 bool ShouldShowDialogTitle() const override; 37 bool ShouldShowDialogTitle() const override;
36 bool HandleContextMenu(const content::ContextMenuParams& params) override; 38 bool HandleContextMenu(const content::ContextMenuParams& params) override;
37 39
38 DISALLOW_COPY_AND_ASSIGN(ChooseMobileNetworkDialog); 40 DISALLOW_COPY_AND_ASSIGN(ChooseMobileNetworkDialog);
39 }; 41 };
40 42
41 } // namespace chromeos 43 } // namespace chromeos
42 44
43 #endif // CHROME_BROWSER_CHROMEOS_UI_CHOOSE_MOBILE_NETWORK_DIALOG_H_ 45 #endif // CHROME_BROWSER_CHROMEOS_UI_CHOOSE_MOBILE_NETWORK_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698