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

Side by Side Diff: chrome/browser/ui/webui/sync_promo/sync_promo_dialog.h

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 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_DIALOG_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_DIALOG_H_
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_DIALOG_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_DIALOG_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/webui/html_dialog_ui.h" 9 #include "chrome/browser/ui/webui/html_dialog_ui.h"
10 10
(...skipping 26 matching lines...) Expand all
37 virtual string16 GetDialogTitle() const OVERRIDE; 37 virtual string16 GetDialogTitle() const OVERRIDE;
38 virtual GURL GetDialogContentURL() const OVERRIDE; 38 virtual GURL GetDialogContentURL() const OVERRIDE;
39 virtual void GetWebUIMessageHandlers( 39 virtual void GetWebUIMessageHandlers(
40 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; 40 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE;
41 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; 41 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE;
42 virtual std::string GetDialogArgs() const OVERRIDE; 42 virtual std::string GetDialogArgs() const OVERRIDE;
43 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; 43 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE;
44 virtual void OnCloseContents(content::WebContents* source, 44 virtual void OnCloseContents(content::WebContents* source,
45 bool* out_close_dialog) OVERRIDE; 45 bool* out_close_dialog) OVERRIDE;
46 virtual bool ShouldShowDialogTitle() const OVERRIDE; 46 virtual bool ShouldShowDialogTitle() const OVERRIDE;
47 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; 47 virtual bool HandleContextMenu(
48 const content::ContextMenuParams& params) OVERRIDE;
48 virtual bool HandleOpenURLFromTab( 49 virtual bool HandleOpenURLFromTab(
49 content::WebContents* source, 50 content::WebContents* source,
50 const content::OpenURLParams& params, 51 const content::OpenURLParams& params,
51 content::WebContents** out_new_contents) OVERRIDE; 52 content::WebContents** out_new_contents) OVERRIDE;
52 virtual bool HandleAddNewContents(content::WebContents* source, 53 virtual bool HandleAddNewContents(content::WebContents* source,
53 content::WebContents* new_contents, 54 content::WebContents* new_contents,
54 WindowOpenDisposition disposition, 55 WindowOpenDisposition disposition,
55 const gfx::Rect& initial_pos, 56 const gfx::Rect& initial_pos,
56 bool user_gesture) OVERRIDE; 57 bool user_gesture) OVERRIDE;
57 58
58 // The profile that should own the HTML dialog. 59 // The profile that should own the HTML dialog.
59 Profile* profile_; 60 Profile* profile_;
60 // The browser spawned from the sync promo dialog (if any). 61 // The browser spawned from the sync promo dialog (if any).
61 Browser* spawned_browser_; 62 Browser* spawned_browser_;
62 // This is set to true if the sync promo was closed. 63 // This is set to true if the sync promo was closed.
63 bool sync_promo_was_closed_; 64 bool sync_promo_was_closed_;
64 // The URL to dispaly in the HTML dialog. 65 // The URL to dispaly in the HTML dialog.
65 GURL url_; 66 GURL url_;
66 // The dialog window. 67 // The dialog window.
67 gfx::NativeWindow window_; 68 gfx::NativeWindow window_;
68 69
69 DISALLOW_COPY_AND_ASSIGN(SyncPromoDialog); 70 DISALLOW_COPY_AND_ASSIGN(SyncPromoDialog);
70 }; 71 };
71 72
72 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_DIALOG_H_ 73 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698