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

Side by Side Diff: extensions/browser/app_window/app_window.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
« no previous file with comments | « extensions/browser/app_window/app_window.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/app_window/app_window.h" 5 #include "extensions/browser/app_window/app_window.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 910 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
911 ::switches::kTestType)) { 911 ::switches::kTestType)) {
912 app_window_contents_->DispatchWindowShownForTests(); 912 app_window_contents_->DispatchWindowShownForTests();
913 } 913 }
914 } 914 }
915 915
916 void AppWindow::CloseContents(WebContents* contents) { 916 void AppWindow::CloseContents(WebContents* contents) {
917 native_app_window_->Close(); 917 native_app_window_->Close();
918 } 918 }
919 919
920 bool AppWindow::ShouldSuppressDialogs(WebContents* source) { 920 bool AppWindow::ShouldSuppressDialogs(WebContents* source, bool before_unload) {
921 return true; 921 return true;
922 } 922 }
923 923
924 content::ColorChooser* AppWindow::OpenColorChooser( 924 content::ColorChooser* AppWindow::OpenColorChooser(
925 WebContents* web_contents, 925 WebContents* web_contents,
926 SkColor initial_color, 926 SkColor initial_color,
927 const std::vector<content::ColorSuggestion>& suggestions) { 927 const std::vector<content::ColorSuggestion>& suggestions) {
928 return app_delegate_->ShowColorChooser(web_contents, initial_color); 928 return app_delegate_->ShowColorChooser(web_contents, initial_color);
929 } 929 }
930 930
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 region.bounds.x(), 1126 region.bounds.x(),
1127 region.bounds.y(), 1127 region.bounds.y(),
1128 region.bounds.right(), 1128 region.bounds.right(),
1129 region.bounds.bottom(), 1129 region.bounds.bottom(),
1130 region.draggable ? SkRegion::kUnion_Op : SkRegion::kDifference_Op); 1130 region.draggable ? SkRegion::kUnion_Op : SkRegion::kDifference_Op);
1131 } 1131 }
1132 return sk_region; 1132 return sk_region;
1133 } 1133 }
1134 1134
1135 } // namespace extensions 1135 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/app_window/app_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698