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

Side by Side Diff: chrome/browser/chromeos/sim_unlock_dialog_delegate.h

Issue 6776019: [cros] Create SIM unlock dialog wrapper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 9 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_SIM_UNLOCK_DIALOG_DELEGATE_H_
6 #define CHROME_BROWSER_CHROMEOS_SIM_UNLOCK_DIALOG_DELEGATE_H_
7
8 #include "chrome/browser/ui/webui/html_dialog_ui.h"
9 #include "ui/gfx/native_widget_types.h"
10
11 namespace chromeos {
12
13 // SIM unlock dialog displayed in cases when SIM card has to be unlocked.
14 class SimUnlockDialogDelegate : public HtmlDialogUIDelegate {
15 public:
16 SimUnlockDialogDelegate();
17
18 // Shows the keyboard overlay dialog box.
19 static void ShowDialog(gfx::NativeWindow owning_window);
20
21 private:
22 ~SimUnlockDialogDelegate();
23
24 // Overridden from HtmlDialogUI::Delegate:
25 virtual bool IsDialogModal() const;
26 virtual std::wstring GetDialogTitle() const;
27 virtual GURL GetDialogContentURL() const;
28 virtual void GetWebUIMessageHandlers(
29 std::vector<WebUIMessageHandler*>* handlers) const;
30 virtual void GetDialogSize(gfx::Size* size) const;
31 virtual std::string GetDialogArgs() const;
32 virtual void OnDialogClosed(const std::string& json_retval);
33 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog);
34 virtual bool ShouldShowDialogTitle() const;
35
36 DISALLOW_COPY_AND_ASSIGN(SimUnlockDialogDelegate);
37 };
38
39 } // namespace chromeos
40
41 #endif // CHROME_BROWSER_CHROMEOS_SIM_UNLOCK_DIALOG_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698