OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |