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

Side by Side Diff: chrome/browser/chromeos/charger_replace/charger_link_dialog.h

Issue 107103004: Implement the spring charger replacement UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Point iFrame to production site. Created 7 years 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_BLUETOOTH_BLUETOOTH_PAIRING_DIALOG_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CHARGER_REPLACE_CHARGER_LINK_DIALOG_H_
6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_PAIRING_DIALOG_H_ 6 #define CHROME_BROWSER_CHROMEOS_CHARGER_REPLACE_CHARGER_LINK_DIALOG_H_
7 7
8 #include <string>
9
10 #include "base/compiler_specific.h"
11 #include "base/values.h"
12 #include "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
13 #include "ui/web_dialogs/web_dialog_delegate.h" 9 #include "ui/web_dialogs/web_dialog_delegate.h"
14 10
15 namespace device {
16 class BluetoothDevice;
17 }
18
19 namespace chromeos { 11 namespace chromeos {
20 12
21 // Bluetooth device pairing dialog shown form ash tray bubble. 13 // Dialog for showing the web page for the links on charger replacement dialog.
22 class BluetoothPairingDialog : public ui::WebDialogDelegate { 14 class ChargerLinkDialog : public ui::WebDialogDelegate {
23 public: 15 public:
24 BluetoothPairingDialog(gfx::NativeWindow parent_window, 16 ChargerLinkDialog(gfx::NativeWindow parent_window,
25 const device::BluetoothDevice* device); 17 std::string url);
26 virtual ~BluetoothPairingDialog(); 18 virtual ~ChargerLinkDialog();
27 19
28 void Show(); 20 void Show();
29 21
30 protected: 22 private:
31 // ui::WebDialogDelegate implementation. 23 // ui::WebDialogDelegate implementation.
32 virtual ui::ModalType GetDialogModalType() const OVERRIDE; 24 virtual ui::ModalType GetDialogModalType() const OVERRIDE;
33 virtual base::string16 GetDialogTitle() const OVERRIDE; 25 virtual string16 GetDialogTitle() const OVERRIDE;
34 virtual GURL GetDialogContentURL() const OVERRIDE; 26 virtual GURL GetDialogContentURL() const OVERRIDE;
35 virtual void GetWebUIMessageHandlers( 27 virtual void GetWebUIMessageHandlers(
36 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; 28 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE;
37 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; 29 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE;
38 virtual std::string GetDialogArgs() const OVERRIDE; 30 virtual std::string GetDialogArgs() const OVERRIDE;
39 // NOTE: This function deletes this object at the end. 31 // NOTE: This function deletes this object at the end.
40 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; 32 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE;
41 virtual void OnCloseContents( 33 virtual void OnCloseContents(
42 content::WebContents* source, bool* out_close_dialog) OVERRIDE; 34 content::WebContents* source, bool* out_close_dialog) OVERRIDE;
43 virtual bool ShouldShowDialogTitle() const OVERRIDE; 35 virtual bool ShouldShowDialogTitle() const OVERRIDE;
44 virtual bool HandleContextMenu( 36 virtual bool HandleContextMenu(
45 const content::ContextMenuParams& params) OVERRIDE; 37 const content::ContextMenuParams& params) OVERRIDE;
46 38
47 private:
48 gfx::NativeWindow parent_window_; 39 gfx::NativeWindow parent_window_;
49 DictionaryValue device_data_; 40 std::string url_;
50 41
51 DISALLOW_COPY_AND_ASSIGN(BluetoothPairingDialog); 42 DISALLOW_COPY_AND_ASSIGN(ChargerLinkDialog);
52 }; 43 };
53 44
54 } // namespace chromeos 45 } // namespace chromeos
55 46
56 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_PAIRING_DIALOG_H_ 47 #endif // CHROME_BROWSER_CHROMEOS_CHARGER_REPLACE_CHARGER_LINK_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/chromeos/charger_replace/charger_link_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698