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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 1150843002: Dismiss browser plugin modal dialogs when the embedder needs to. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move test file Created 5 years, 7 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
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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 void SetBrowserPluginGuest(BrowserPluginGuest* guest); 149 void SetBrowserPluginGuest(BrowserPluginGuest* guest);
150 150
151 // Returns embedder browser plugin object, or NULL if this WebContents is not 151 // Returns embedder browser plugin object, or NULL if this WebContents is not
152 // an embedder. 152 // an embedder.
153 BrowserPluginEmbedder* GetBrowserPluginEmbedder() const; 153 BrowserPluginEmbedder* GetBrowserPluginEmbedder() const;
154 154
155 // Creates a BrowserPluginEmbedder object for this WebContents if one doesn't 155 // Creates a BrowserPluginEmbedder object for this WebContents if one doesn't
156 // already exist. 156 // already exist.
157 void CreateBrowserPluginEmbedderIfNecessary(); 157 void CreateBrowserPluginEmbedderIfNecessary();
158 158
159 // Cancels modal dialogs in this WebContents, as well as in any browser
160 // plugins it is hosting.
161 void CancelActiveAndPendingDialogs();
162
159 // Gets the current fullscreen render widget's routing ID. Returns 163 // Gets the current fullscreen render widget's routing ID. Returns
160 // MSG_ROUTING_NONE when there is no fullscreen render widget. 164 // MSG_ROUTING_NONE when there is no fullscreen render widget.
161 int GetFullscreenWidgetRoutingID() const; 165 int GetFullscreenWidgetRoutingID() const;
162 166
163 // Invoked when visible SSL state (as defined by SSLStatus) changes. 167 // Invoked when visible SSL state (as defined by SSLStatus) changes.
164 void DidChangeVisibleSSLState(); 168 void DidChangeVisibleSSLState();
165 169
166 // Informs the render view host and the BrowserPluginEmbedder, if present, of 170 // Informs the render view host and the BrowserPluginEmbedder, if present, of
167 // a Drag Source End. 171 // a Drag Source End.
168 void DragSourceEndedAt(int client_x, int client_y, int screen_x, 172 void DragSourceEndedAt(int client_x, int client_y, int screen_x,
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 // Adds/removes a callback called on creation of each new WebContents. 1276 // Adds/removes a callback called on creation of each new WebContents.
1273 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1277 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1274 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1278 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1275 1279
1276 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1280 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1277 }; 1281 };
1278 1282
1279 } // namespace content 1283 } // namespace content
1280 1284
1281 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1285 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_embedder.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698