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

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

Issue 10868116: Pass result of blockage across content API when new tab blocked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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_WEB_DIALOG_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_WEB_DIALOG_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_WEB_DIALOG_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_WEB_DIALOG_GTK_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual bool ShouldShowDialogTitle() const OVERRIDE; 51 virtual bool ShouldShowDialogTitle() const OVERRIDE;
52 52
53 // Overridden from content::WebContentsDelegate: 53 // Overridden from content::WebContentsDelegate:
54 virtual void HandleKeyboardEvent( 54 virtual void HandleKeyboardEvent(
55 content::WebContents* source, 55 content::WebContents* source,
56 const content::NativeWebKeyboardEvent& event) OVERRIDE; 56 const content::NativeWebKeyboardEvent& event) OVERRIDE;
57 virtual void CloseContents(content::WebContents* source) OVERRIDE; 57 virtual void CloseContents(content::WebContents* source) OVERRIDE;
58 virtual content::WebContents* OpenURLFromTab( 58 virtual content::WebContents* OpenURLFromTab(
59 content::WebContents* source, 59 content::WebContents* source,
60 const content::OpenURLParams& params) OVERRIDE; 60 const content::OpenURLParams& params) OVERRIDE;
61 virtual void AddNewContents(content::WebContents* source, 61 virtual bool AddNewContents(content::WebContents* source,
62 content::WebContents* new_contents, 62 content::WebContents* new_contents,
63 WindowOpenDisposition disposition, 63 WindowOpenDisposition disposition,
64 const gfx::Rect& initial_pos, 64 const gfx::Rect& initial_pos,
65 bool user_gesture) OVERRIDE; 65 bool user_gesture) OVERRIDE;
66 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; 66 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE;
67 67
68 private: 68 private:
69 CHROMEGTK_CALLBACK_1(WebDialogGtk, void, OnResponse, int); 69 CHROMEGTK_CALLBACK_1(WebDialogGtk, void, OnResponse, int);
70 70
71 // This view is a delegate to the HTML content since it needs to get notified 71 // This view is a delegate to the HTML content since it needs to get notified
72 // about when the dialog is closing. For all other actions (besides dialog 72 // about when the dialog is closing. For all other actions (besides dialog
73 // closing) we delegate to the creator of this view, which we keep track of 73 // closing) we delegate to the creator of this view, which we keep track of
74 // using this variable. 74 // using this variable.
75 ui::WebDialogDelegate* delegate_; 75 ui::WebDialogDelegate* delegate_;
76 76
77 gfx::NativeWindow parent_window_; 77 gfx::NativeWindow parent_window_;
78 78
79 GtkWidget* dialog_; 79 GtkWidget* dialog_;
80 80
81 scoped_ptr<TabContents> tab_; 81 scoped_ptr<TabContents> tab_;
82 scoped_ptr<TabContentsContainerGtk> tab_contents_container_; 82 scoped_ptr<TabContentsContainerGtk> tab_contents_container_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(WebDialogGtk); 84 DISALLOW_COPY_AND_ASSIGN(WebDialogGtk);
85 }; 85 };
86 86
87 #endif // CHROME_BROWSER_UI_GTK_WEB_DIALOG_GTK_H_ 87 #endif // CHROME_BROWSER_UI_GTK_WEB_DIALOG_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698