| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/webui/chromeos/mobile_setup_dialog.h" | 5 #include "chrome/browser/ui/webui/chromeos/mobile_setup_dialog.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/platform_util.h" | 10 #include "chrome/browser/platform_util.h" |
| 11 #include "chrome/browser/profiles/profile_manager.h" | 11 #include "chrome/browser/profiles/profile_manager.h" |
| 12 #include "chrome/browser/ui/browser_dialogs.h" | 12 #include "chrome/browser/ui/browser_dialogs.h" |
| 13 #include "chrome/browser/ui/simple_message_box.h" | 13 #include "chrome/browser/ui/simple_message_box.h" |
| 14 #include "chrome/browser/ui/webui/web_dialog_delegate.h" | |
| 15 #include "chrome/common/url_constants.h" | 14 #include "chrome/common/url_constants.h" |
| 16 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 17 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
| 18 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
| 19 #include "ui/gfx/size.h" | 18 #include "ui/gfx/size.h" |
| 20 #include "ui/views/widget/widget.h" | 19 #include "ui/views/widget/widget.h" |
| 20 #include "ui/web_dialogs/web_dialog_delegate.h" |
| 21 | 21 |
| 22 using content::BrowserThread; | 22 using content::BrowserThread; |
| 23 using content::WebContents; | 23 using content::WebContents; |
| 24 using content::WebUIMessageHandler; | 24 using content::WebUIMessageHandler; |
| 25 using ui::WebDialogDelegate; |
| 25 | 26 |
| 26 class MobileSetupDialogDelegate : public WebDialogDelegate { | 27 class MobileSetupDialogDelegate : public WebDialogDelegate { |
| 27 public: | 28 public: |
| 28 static MobileSetupDialogDelegate* GetInstance(); | 29 static MobileSetupDialogDelegate* GetInstance(); |
| 29 void ShowDialog(); | 30 void ShowDialog(); |
| 30 | 31 |
| 31 protected: | 32 protected: |
| 32 friend struct DefaultSingletonTraits<MobileSetupDialogDelegate>; | 33 friend struct DefaultSingletonTraits<MobileSetupDialogDelegate>; |
| 33 | 34 |
| 34 MobileSetupDialogDelegate(); | 35 MobileSetupDialogDelegate(); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 } | 126 } |
| 126 | 127 |
| 127 bool MobileSetupDialogDelegate::ShouldShowDialogTitle() const { | 128 bool MobileSetupDialogDelegate::ShouldShowDialogTitle() const { |
| 128 return true; | 129 return true; |
| 129 } | 130 } |
| 130 | 131 |
| 131 bool MobileSetupDialogDelegate::HandleContextMenu( | 132 bool MobileSetupDialogDelegate::HandleContextMenu( |
| 132 const content::ContextMenuParams& params) { | 133 const content::ContextMenuParams& params) { |
| 133 return true; | 134 return true; |
| 134 } | 135 } |
| OLD | NEW |