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 #ifndef COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ | 5 #ifndef COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ |
6 #define COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ | 6 #define COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 | 318 |
319 // Convert sizes in pixels from physical to logical numbers of pixels. | 319 // Convert sizes in pixels from physical to logical numbers of pixels. |
320 // Note that a size can consist of a fractional number of logical pixels | 320 // Note that a size can consist of a fractional number of logical pixels |
321 // (hence the return value is represented as a double), but will always | 321 // (hence the return value is represented as a double), but will always |
322 // consist of an integral number of physical pixels (hence |physical_pixels| | 322 // consist of an integral number of physical pixels (hence |physical_pixels| |
323 // is represented as an int). | 323 // is represented as an int). |
324 double PhysicalPixelsToLogicalPixels(int physical_pixels) const; | 324 double PhysicalPixelsToLogicalPixels(int physical_pixels) const; |
325 | 325 |
326 void SetGuestZoomLevelToMatchEmbedder(); | 326 void SetGuestZoomLevelToMatchEmbedder(); |
327 | 327 |
328 private: | 328 protected: |
329 friend class GuestViewMessageFilter; | 329 friend class GuestViewMessageFilter; |
330 | 330 |
331 class OwnerContentsObserver; | 331 class OwnerContentsObserver; |
332 class OpenerLifetimeObserver; | 332 class OpenerLifetimeObserver; |
333 | 333 |
334 // BrowserPluginGuestDelegate implementation. | 334 // BrowserPluginGuestDelegate implementation. |
335 content::WebContents* CreateNewGuestWindow( | 335 content::WebContents* CreateNewGuestWindow( |
336 const content::WebContents::CreateParams& create_params) final; | 336 const content::WebContents::CreateParams& create_params) final; |
337 void DidAttach(int guest_proxy_routing_id) final; | 337 void DidAttach(int guest_proxy_routing_id) final; |
338 void DidDetach() final; | 338 void DidDetach() final; |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 // This is used to ensure pending tasks will not fire after this object is | 478 // This is used to ensure pending tasks will not fire after this object is |
479 // destroyed. | 479 // destroyed. |
480 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; | 480 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; |
481 | 481 |
482 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); | 482 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); |
483 }; | 483 }; |
484 | 484 |
485 } // namespace guest_view | 485 } // namespace guest_view |
486 | 486 |
487 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ | 487 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ |
OLD | NEW |