| 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/guest_view/web_view/web_view_guest.h" | 5 #include "extensions/browser/guest_view/web_view/web_view_guest.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 using base::UserMetricsAction; | 67 using base::UserMetricsAction; |
| 68 using content::GlobalRequestID; | 68 using content::GlobalRequestID; |
| 69 using content::RenderFrameHost; | 69 using content::RenderFrameHost; |
| 70 using content::RenderProcessHost; | 70 using content::RenderProcessHost; |
| 71 using content::ResourceType; | 71 using content::ResourceType; |
| 72 using content::StoragePartition; | 72 using content::StoragePartition; |
| 73 using content::WebContents; | 73 using content::WebContents; |
| 74 using guest_view::GuestViewBase; | 74 using guest_view::GuestViewBase; |
| 75 using guest_view::GuestViewEvent; | 75 using guest_view::GuestViewEvent; |
| 76 using guest_view::GuestViewManager; | 76 using guest_view::GuestViewManager; |
| 77 using ui_zoom::ZoomController; | 77 using zoom::ZoomController; |
| 78 | 78 |
| 79 namespace extensions { | 79 namespace extensions { |
| 80 | 80 |
| 81 namespace { | 81 namespace { |
| 82 | 82 |
| 83 // Returns storage partition removal mask from web_view clearData mask. Note | 83 // Returns storage partition removal mask from web_view clearData mask. Note |
| 84 // that storage partition mask is a subset of webview's data removal mask. | 84 // that storage partition mask is a subset of webview's data removal mask. |
| 85 uint32_t GetStoragePartitionRemovalMask(uint32_t web_view_removal_mask) { | 85 uint32_t GetStoragePartitionRemovalMask(uint32_t web_view_removal_mask) { |
| 86 uint32_t mask = 0; | 86 uint32_t mask = 0; |
| 87 if (web_view_removal_mask & webview::WEB_VIEW_REMOVE_DATA_MASK_APPCACHE) | 87 if (web_view_removal_mask & webview::WEB_VIEW_REMOVE_DATA_MASK_APPCACHE) |
| (...skipping 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1498 std::unique_ptr<base::DictionaryValue> args(new base::DictionaryValue()); | 1498 std::unique_ptr<base::DictionaryValue> args(new base::DictionaryValue()); |
| 1499 DispatchEventToView(base::WrapUnique( | 1499 DispatchEventToView(base::WrapUnique( |
| 1500 new GuestViewEvent(webview::kEventExitFullscreen, std::move(args)))); | 1500 new GuestViewEvent(webview::kEventExitFullscreen, std::move(args)))); |
| 1501 } | 1501 } |
| 1502 // Since we changed fullscreen state, sending a Resize message ensures that | 1502 // Since we changed fullscreen state, sending a Resize message ensures that |
| 1503 // renderer/ sees the change. | 1503 // renderer/ sees the change. |
| 1504 web_contents()->GetRenderViewHost()->GetWidget()->WasResized(); | 1504 web_contents()->GetRenderViewHost()->GetWidget()->WasResized(); |
| 1505 } | 1505 } |
| 1506 | 1506 |
| 1507 } // namespace extensions | 1507 } // namespace extensions |
| OLD | NEW |