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

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

Issue 9382037: Move ContextMenuParams struct from webkit/glue to content/public/common. The reasons are: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 10 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"
(...skipping 28 matching lines...) Expand all
39 virtual string16 GetDialogTitle() const OVERRIDE; 39 virtual string16 GetDialogTitle() const OVERRIDE;
40 virtual GURL GetDialogContentURL() const OVERRIDE; 40 virtual GURL GetDialogContentURL() const OVERRIDE;
41 virtual void GetWebUIMessageHandlers( 41 virtual void GetWebUIMessageHandlers(
42 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE; 42 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE;
43 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; 43 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE;
44 virtual std::string GetDialogArgs() const OVERRIDE; 44 virtual std::string GetDialogArgs() const OVERRIDE;
45 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; 45 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE;
46 virtual void OnCloseContents(WebContents* source, 46 virtual void OnCloseContents(WebContents* source,
47 bool* out_close_dialog) OVERRIDE; 47 bool* out_close_dialog) OVERRIDE;
48 virtual bool ShouldShowDialogTitle() const OVERRIDE; 48 virtual bool ShouldShowDialogTitle() const OVERRIDE;
49 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; 49 virtual bool HandleContextMenu(
50 const content::ContextMenuParams& params) OVERRIDE;
50 51
51 private: 52 private:
52 53
53 DISALLOW_COPY_AND_ASSIGN(MobileSetupDialogDelegate); 54 DISALLOW_COPY_AND_ASSIGN(MobileSetupDialogDelegate);
54 }; 55 };
55 56
56 // static 57 // static
57 void MobileSetupDialog::Show() { 58 void MobileSetupDialog::Show() {
58 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 59 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
59 MobileSetupDialogDelegate::GetInstance()->ShowDialog(); 60 MobileSetupDialogDelegate::GetInstance()->ShowDialog();
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 void MobileSetupDialogDelegate::OnCloseContents(WebContents* source, 113 void MobileSetupDialogDelegate::OnCloseContents(WebContents* source,
113 bool* out_close_dialog) { 114 bool* out_close_dialog) {
114 *out_close_dialog = true; 115 *out_close_dialog = true;
115 } 116 }
116 117
117 bool MobileSetupDialogDelegate::ShouldShowDialogTitle() const { 118 bool MobileSetupDialogDelegate::ShouldShowDialogTitle() const {
118 return true; 119 return true;
119 } 120 }
120 121
121 bool MobileSetupDialogDelegate::HandleContextMenu( 122 bool MobileSetupDialogDelegate::HandleContextMenu(
122 const ContextMenuParams& params) { 123 const content::ContextMenuParams& params) {
123 return true; 124 return true;
124 } 125 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698