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

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: gn check 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. The dialog is created as a child of |parent|. If the
19 static void ShowDialog(gfx::NativeWindow owning_window); 18 // |parent| is null the dialog is created in the default modal container.
19 static void ShowDialog(gfx::NativeWindow parent);
20
21 // Shows the dialog in an ash window container (which must be a system modal
22 // container) on the primary display.
23 static void ShowDialogInContainer(int container_id);
20 24
21 private: 25 private:
22 ChooseMobileNetworkDialog(); 26 ChooseMobileNetworkDialog();
23 27
24 // Overridden from ui::WebDialogDelegate: 28 // Overridden from ui::WebDialogDelegate:
25 ui::ModalType GetDialogModalType() const override; 29 ui::ModalType GetDialogModalType() const override;
26 base::string16 GetDialogTitle() const override; 30 base::string16 GetDialogTitle() const override;
27 GURL GetDialogContentURL() const override; 31 GURL GetDialogContentURL() const override;
28 void GetWebUIMessageHandlers( 32 void GetWebUIMessageHandlers(
29 std::vector<content::WebUIMessageHandler*>* handlers) const override; 33 std::vector<content::WebUIMessageHandler*>* handlers) const override;
30 void GetDialogSize(gfx::Size* size) const override; 34 void GetDialogSize(gfx::Size* size) const override;
31 std::string GetDialogArgs() const override; 35 std::string GetDialogArgs() const override;
32 void OnDialogClosed(const std::string& json_retval) override; 36 void OnDialogClosed(const std::string& json_retval) override;
33 void OnCloseContents(content::WebContents* source, 37 void OnCloseContents(content::WebContents* source,
34 bool* out_close_dialog) override; 38 bool* out_close_dialog) override;
35 bool ShouldShowDialogTitle() const override; 39 bool ShouldShowDialogTitle() const override;
36 bool HandleContextMenu(const content::ContextMenuParams& params) override; 40 bool HandleContextMenu(const content::ContextMenuParams& params) override;
37 41
38 DISALLOW_COPY_AND_ASSIGN(ChooseMobileNetworkDialog); 42 DISALLOW_COPY_AND_ASSIGN(ChooseMobileNetworkDialog);
39 }; 43 };
40 44
41 } // namespace chromeos 45 } // namespace chromeos
42 46
43 #endif // CHROME_BROWSER_CHROMEOS_UI_CHOOSE_MOBILE_NETWORK_DIALOG_H_ 47 #endif // CHROME_BROWSER_CHROMEOS_UI_CHOOSE_MOBILE_NETWORK_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/set_time_dialog.cc ('k') | chrome/browser/chromeos/ui/choose_mobile_network_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698