| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ | 5 #ifndef CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ |
| 6 #define CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ | 6 #define CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
| 10 #include "chrome/common/image_context_menu_renderer.mojom.h" | 10 #include "chrome/common/image_context_menu_renderer.mojom.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 void DidMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override; | 48 void DidMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override; |
| 49 void OnDestruct() override; | 49 void OnDestruct() override; |
| 50 | 50 |
| 51 // chrome::mojom::ImageContextMenuRenderer: | 51 // chrome::mojom::ImageContextMenuRenderer: |
| 52 void RequestReloadImageForContextNode() override; | 52 void RequestReloadImageForContextNode() override; |
| 53 | 53 |
| 54 // chrome::mojom::ThumbnailCapturer: | 54 // chrome::mojom::ThumbnailCapturer: |
| 55 void RequestThumbnailForContextNode( | 55 void RequestThumbnailForContextNode( |
| 56 int32_t thumbnail_min_area_pixels, | 56 int32_t thumbnail_min_area_pixels, |
| 57 const gfx::Size& thumbnail_max_size_pixels, | 57 const gfx::Size& thumbnail_max_size_pixels, |
| 58 bool use_png_codec, |
| 58 const RequestThumbnailForContextNodeCallback& callback) override; | 59 const RequestThumbnailForContextNodeCallback& callback) override; |
| 59 | 60 |
| 60 // Mojo handlers. | 61 // Mojo handlers. |
| 61 void OnImageContextMenuRendererRequest( | 62 void OnImageContextMenuRendererRequest( |
| 62 const service_manager::BindSourceInfo& source_info, | 63 const service_manager::BindSourceInfo& source_info, |
| 63 chrome::mojom::ImageContextMenuRendererRequest request); | 64 chrome::mojom::ImageContextMenuRendererRequest request); |
| 64 void OnThumbnailCapturerRequest( | 65 void OnThumbnailCapturerRequest( |
| 65 const service_manager::BindSourceInfo& source_info, | 66 const service_manager::BindSourceInfo& source_info, |
| 66 chrome::mojom::ThumbnailCapturerRequest request); | 67 chrome::mojom::ThumbnailCapturerRequest request); |
| 67 | 68 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 91 mojo::BindingSet<chrome::mojom::ImageContextMenuRenderer> | 92 mojo::BindingSet<chrome::mojom::ImageContextMenuRenderer> |
| 92 image_context_menu_renderer_bindings_; | 93 image_context_menu_renderer_bindings_; |
| 93 | 94 |
| 94 mojo::BindingSet<chrome::mojom::ThumbnailCapturer> | 95 mojo::BindingSet<chrome::mojom::ThumbnailCapturer> |
| 95 thumbnail_capturer_bindings_; | 96 thumbnail_capturer_bindings_; |
| 96 | 97 |
| 97 DISALLOW_COPY_AND_ASSIGN(ChromeRenderFrameObserver); | 98 DISALLOW_COPY_AND_ASSIGN(ChromeRenderFrameObserver); |
| 98 }; | 99 }; |
| 99 | 100 |
| 100 #endif // CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ | 101 #endif // CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ |
| OLD | NEW |