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 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 WindowController* AppWindow::GetExtensionWindowController() const { | 984 WindowController* AppWindow::GetExtensionWindowController() const { |
985 return app_window_contents_->GetWindowController(); | 985 return app_window_contents_->GetWindowController(); |
986 } | 986 } |
987 | 987 |
988 content::WebContents* AppWindow::GetAssociatedWebContents() const { | 988 content::WebContents* AppWindow::GetAssociatedWebContents() const { |
989 return web_contents(); | 989 return web_contents(); |
990 } | 990 } |
991 | 991 |
992 void AppWindow::OnExtensionUnloaded(BrowserContext* browser_context, | 992 void AppWindow::OnExtensionUnloaded(BrowserContext* browser_context, |
993 const Extension* extension, | 993 const Extension* extension, |
994 UnloadedExtensionInfo::Reason reason) { | 994 UnloadedExtensionReason reason) { |
995 if (extension_id_ == extension->id()) | 995 if (extension_id_ == extension->id()) |
996 native_app_window_->Close(); | 996 native_app_window_->Close(); |
997 } | 997 } |
998 | 998 |
999 void AppWindow::SetWebContentsBlocked(content::WebContents* web_contents, | 999 void AppWindow::SetWebContentsBlocked(content::WebContents* web_contents, |
1000 bool blocked) { | 1000 bool blocked) { |
1001 app_delegate_->SetWebContentsBlocked(web_contents, blocked); | 1001 app_delegate_->SetWebContentsBlocked(web_contents, blocked); |
1002 } | 1002 } |
1003 | 1003 |
1004 bool AppWindow::IsWebContentsVisible(content::WebContents* web_contents) { | 1004 bool AppWindow::IsWebContentsVisible(content::WebContents* web_contents) { |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1118 region.bounds.x(), | 1118 region.bounds.x(), |
1119 region.bounds.y(), | 1119 region.bounds.y(), |
1120 region.bounds.right(), | 1120 region.bounds.right(), |
1121 region.bounds.bottom(), | 1121 region.bounds.bottom(), |
1122 region.draggable ? SkRegion::kUnion_Op : SkRegion::kDifference_Op); | 1122 region.draggable ? SkRegion::kUnion_Op : SkRegion::kDifference_Op); |
1123 } | 1123 } |
1124 return sk_region; | 1124 return sk_region; |
1125 } | 1125 } |
1126 | 1126 |
1127 } // namespace extensions | 1127 } // namespace extensions |
OLD | NEW |