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

Unified Diff: chrome/browser/ui/webui/chromeos/mobile_setup_dialog.h

Issue 8271025: Moved mobile activation into its own modal dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/chromeos/mobile_setup_dialog.h
===================================================================
--- chrome/browser/ui/webui/chromeos/mobile_setup_dialog.h (revision 0)
+++ chrome/browser/ui/webui/chromeos/mobile_setup_dialog.h (revision 0)
@@ -0,0 +1,47 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_MOBILE_SETUP_DIALOG_H_
+#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_MOBILE_SETUP_DIALOG_H_
+#pragma once
+
+#include <vector>
+
+#include "base/memory/singleton.h"
+#include "chrome/browser/ui/webui/html_dialog_ui.h"
+
+class MobileSetupDialog : public HtmlDialogUIDelegate {
+ public:
+ MobileSetupDialog();
+
+ static void Show();
+ static MobileSetupDialog* GetInstance();
+
+ protected:
+ friend struct DefaultSingletonTraits<MobileSetupDialog>;
+ virtual ~MobileSetupDialog();
+
+ void OnCloseDialog();
+
+ // HtmlDialogUIDelegate overrides.
+ virtual bool IsDialogModal() const OVERRIDE;
+ virtual string16 GetDialogTitle() const OVERRIDE;
+ virtual GURL GetDialogContentURL() const OVERRIDE;
+ virtual void GetWebUIMessageHandlers(
+ std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE;
+ virtual void GetDialogSize(gfx::Size* size) const OVERRIDE;
+ virtual std::string GetDialogArgs() const OVERRIDE;
+ virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE;
+ virtual void OnCloseContents(TabContents* source,
+ bool* out_close_dialog) OVERRIDE;
+ virtual bool ShouldShowDialogTitle() const OVERRIDE;
+ virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE;
+
+ private:
+ void ShowDialog();
+
+ DISALLOW_COPY_AND_ASSIGN(MobileSetupDialog);
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_MOBILE_SETUP_DIALOG_H_
Property changes on: chrome/browser/ui/webui/chromeos/mobile_setup_dialog.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698