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

Side by Side Diff: content/public/browser/web_contents_delegate.cc

Issue 2194243002: Suppress JavaScript dialogs when a tab puts itself into fullscreen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: switch fullscreen call Created 4 years, 4 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 #include "content/public/browser/web_contents_delegate.h" 5 #include "content/public/browser/web_contents_delegate.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 22 matching lines...) Expand all
33 bool WebContentsDelegate::IsPopupOrPanel(const WebContents* source) const { 33 bool WebContentsDelegate::IsPopupOrPanel(const WebContents* source) const {
34 return false; 34 return false;
35 } 35 }
36 36
37 bool WebContentsDelegate::CanOverscrollContent() const { return false; } 37 bool WebContentsDelegate::CanOverscrollContent() const { return false; }
38 38
39 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const { 39 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const {
40 return gfx::Rect(); 40 return gfx::Rect();
41 } 41 }
42 42
43 bool WebContentsDelegate::ShouldSuppressDialogs(WebContents* source) { 43 bool WebContentsDelegate::ShouldSuppressDialogs(WebContents* source,
44 bool before_unload) {
44 return false; 45 return false;
45 } 46 }
46 47
47 bool WebContentsDelegate::ShouldPreserveAbortedURLs(WebContents* source) { 48 bool WebContentsDelegate::ShouldPreserveAbortedURLs(WebContents* source) {
48 return false; 49 return false;
49 } 50 }
50 51
51 bool WebContentsDelegate::AddMessageToConsole(WebContents* source, 52 bool WebContentsDelegate::AddMessageToConsole(WebContents* source,
52 int32_t level, 53 int32_t level,
53 const base::string16& message, 54 const base::string16& message,
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 void WebContentsDelegate::ShowCertificateViewerInDevTools( 256 void WebContentsDelegate::ShowCertificateViewerInDevTools(
256 WebContents* web_contents, 257 WebContents* web_contents,
257 int cert_id) { 258 int cert_id) {
258 } 259 }
259 260
260 void WebContentsDelegate::RequestAppBannerFromDevTools( 261 void WebContentsDelegate::RequestAppBannerFromDevTools(
261 content::WebContents* web_contents) { 262 content::WebContents* web_contents) {
262 } 263 }
263 264
264 } // namespace content 265 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | extensions/browser/app_window/app_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698