| Index: chrome/browser/chromeos/charger_replace/charger_link_dialog.h
|
| diff --git a/chrome/browser/chromeos/bluetooth/bluetooth_pairing_dialog.h b/chrome/browser/chromeos/charger_replace/charger_link_dialog.h
|
| similarity index 56%
|
| copy from chrome/browser/chromeos/bluetooth/bluetooth_pairing_dialog.h
|
| copy to chrome/browser/chromeos/charger_replace/charger_link_dialog.h
|
| index 928c2b30f5cb7c0ea3a1dc0ed4a6ba4b84651ec3..96df72e4965c545e92420df6063d3ddd1a725ff4 100644
|
| --- a/chrome/browser/chromeos/bluetooth/bluetooth_pairing_dialog.h
|
| +++ b/chrome/browser/chromeos/charger_replace/charger_link_dialog.h
|
| @@ -1,36 +1,28 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2013 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_CHROMEOS_BLUETOOTH_BLUETOOTH_PAIRING_DIALOG_H_
|
| -#define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_PAIRING_DIALOG_H_
|
| +#ifndef CHROME_BROWSER_CHROMEOS_CHARGER_REPLACE_CHARGER_LINK_DIALOG_H_
|
| +#define CHROME_BROWSER_CHROMEOS_CHARGER_REPLACE_CHARGER_LINK_DIALOG_H_
|
|
|
| -#include <string>
|
| -
|
| -#include "base/compiler_specific.h"
|
| -#include "base/values.h"
|
| #include "ui/gfx/native_widget_types.h"
|
| #include "ui/web_dialogs/web_dialog_delegate.h"
|
|
|
| -namespace device {
|
| -class BluetoothDevice;
|
| -}
|
| -
|
| namespace chromeos {
|
|
|
| -// Bluetooth device pairing dialog shown form ash tray bubble.
|
| -class BluetoothPairingDialog : public ui::WebDialogDelegate {
|
| +// Dialog for showing the web page for the links on charger replacement dialog.
|
| +class ChargerLinkDialog : public ui::WebDialogDelegate {
|
| public:
|
| - BluetoothPairingDialog(gfx::NativeWindow parent_window,
|
| - const device::BluetoothDevice* device);
|
| - virtual ~BluetoothPairingDialog();
|
| + ChargerLinkDialog(gfx::NativeWindow parent_window,
|
| + std::string url);
|
| + virtual ~ChargerLinkDialog();
|
|
|
| void Show();
|
|
|
| - protected:
|
| + private:
|
| // ui::WebDialogDelegate implementation.
|
| virtual ui::ModalType GetDialogModalType() const OVERRIDE;
|
| - virtual base::string16 GetDialogTitle() const OVERRIDE;
|
| + virtual string16 GetDialogTitle() const OVERRIDE;
|
| virtual GURL GetDialogContentURL() const OVERRIDE;
|
| virtual void GetWebUIMessageHandlers(
|
| std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE;
|
| @@ -44,13 +36,12 @@ class BluetoothPairingDialog : public ui::WebDialogDelegate {
|
| virtual bool HandleContextMenu(
|
| const content::ContextMenuParams& params) OVERRIDE;
|
|
|
| - private:
|
| gfx::NativeWindow parent_window_;
|
| - DictionaryValue device_data_;
|
| + std::string url_;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(BluetoothPairingDialog);
|
| + DISALLOW_COPY_AND_ASSIGN(ChargerLinkDialog);
|
| };
|
|
|
| } // namespace chromeos
|
|
|
| -#endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_PAIRING_DIALOG_H_
|
| +#endif // CHROME_BROWSER_CHROMEOS_CHARGER_REPLACE_CHARGER_LINK_DIALOG_H_
|
|
|