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

Side by Side Diff: chrome/browser/ui/gtk/html_dialog_gtk.h

Issue 9225053: Add a blocking version of the sync promo dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments 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_GTK_HTML_DIALOG_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_HTML_DIALOG_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_HTML_DIALOG_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_HTML_DIALOG_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 virtual std::string GetDialogArgs() const OVERRIDE; 48 virtual std::string GetDialogArgs() const OVERRIDE;
49 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; 49 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE;
50 virtual void OnCloseContents(content::WebContents* source, 50 virtual void OnCloseContents(content::WebContents* source,
51 bool* out_close_dialog) OVERRIDE; 51 bool* out_close_dialog) OVERRIDE;
52 virtual bool ShouldShowDialogTitle() const OVERRIDE; 52 virtual bool ShouldShowDialogTitle() const OVERRIDE;
53 53
54 // Overridden from content::WebContentsDelegate: 54 // Overridden from content::WebContentsDelegate:
55 virtual void HandleKeyboardEvent( 55 virtual void HandleKeyboardEvent(
56 const NativeWebKeyboardEvent& event) OVERRIDE; 56 const NativeWebKeyboardEvent& event) OVERRIDE;
57 virtual void CloseContents(content::WebContents* source) OVERRIDE; 57 virtual void CloseContents(content::WebContents* source) OVERRIDE;
58 virtual content::WebContents* OpenURLFromTab(
59 content::WebContents* source,
60 const content::OpenURLParams& params) OVERRIDE;
61 virtual void AddNewContents(content::WebContents* source,
62 content::WebContents* new_contents,
63 WindowOpenDisposition disposition,
64 const gfx::Rect& initial_pos,
65 bool user_gesture) OVERRIDE;
58 66
59 private: 67 private:
60 CHROMEGTK_CALLBACK_1(HtmlDialogGtk, void, OnResponse, int); 68 CHROMEGTK_CALLBACK_1(HtmlDialogGtk, void, OnResponse, int);
61 69
62 // This view is a delegate to the HTML content since it needs to get notified 70 // This view is a delegate to the HTML content since it needs to get notified
63 // about when the dialog is closing. For all other actions (besides dialog 71 // about when the dialog is closing. For all other actions (besides dialog
64 // closing) we delegate to the creator of this view, which we keep track of 72 // closing) we delegate to the creator of this view, which we keep track of
65 // using this variable. 73 // using this variable.
66 HtmlDialogUIDelegate* delegate_; 74 HtmlDialogUIDelegate* delegate_;
67 75
68 gfx::NativeWindow parent_window_; 76 gfx::NativeWindow parent_window_;
69 77
70 GtkWidget* dialog_; 78 GtkWidget* dialog_;
71 79
72 scoped_ptr<HtmlDialogController> dialog_controller_; 80 scoped_ptr<HtmlDialogController> dialog_controller_;
73 scoped_ptr<TabContentsWrapper> tab_; 81 scoped_ptr<TabContentsWrapper> tab_;
74 scoped_ptr<TabContentsContainerGtk> tab_contents_container_; 82 scoped_ptr<TabContentsContainerGtk> tab_contents_container_;
75 83
76 DISALLOW_COPY_AND_ASSIGN(HtmlDialogGtk); 84 DISALLOW_COPY_AND_ASSIGN(HtmlDialogGtk);
77 }; 85 };
78 86
79 #endif // CHROME_BROWSER_UI_GTK_HTML_DIALOG_GTK_H_ 87 #endif // CHROME_BROWSER_UI_GTK_HTML_DIALOG_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698