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

Side by Side Diff: chrome/browser/ui/webui/chromeos/mobile_setup_dialog.cc

Issue 10448066: Move the web dialogs code to src/ui/web_dialogs from src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 6 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/mobile_setup_dialog.h ('k') | chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698