| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 public: | 28 public: |
| 29 WebContentsViewAndroid(WebContentsImpl* web_contents, | 29 WebContentsViewAndroid(WebContentsImpl* web_contents, |
| 30 WebContentsViewDelegate* delegate); | 30 WebContentsViewDelegate* delegate); |
| 31 ~WebContentsViewAndroid() override; | 31 ~WebContentsViewAndroid() override; |
| 32 | 32 |
| 33 // Sets the interface to the view system. ContentViewCoreImpl is owned | 33 // Sets the interface to the view system. ContentViewCoreImpl is owned |
| 34 // by its Java ContentViewCore counterpart, whose lifetime is managed | 34 // by its Java ContentViewCore counterpart, whose lifetime is managed |
| 35 // by the UI frontend. | 35 // by the UI frontend. |
| 36 void SetContentViewCore(ContentViewCoreImpl* content_view_core); | 36 void SetContentViewCore(ContentViewCoreImpl* content_view_core); |
| 37 | 37 |
| 38 void OnPhysicalBackingSizeChanged(int width, int height); |
| 39 |
| 38 void set_synchronous_compositor_client(SynchronousCompositorClient* client) { | 40 void set_synchronous_compositor_client(SynchronousCompositorClient* client) { |
| 39 synchronous_compositor_client_ = client; | 41 synchronous_compositor_client_ = client; |
| 40 } | 42 } |
| 41 | 43 |
| 42 SynchronousCompositorClient* synchronous_compositor_client() const { | 44 SynchronousCompositorClient* synchronous_compositor_client() const { |
| 43 return synchronous_compositor_client_; | 45 return synchronous_compositor_client_; |
| 44 } | 46 } |
| 45 | 47 |
| 46 // WebContentsView implementation -------------------------------------------- | 48 // WebContentsView implementation -------------------------------------------- |
| 47 gfx::NativeView GetNativeView() const override; | 49 gfx::NativeView GetNativeView() const override; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 117 |
| 116 // Interface used to get notified of events from the synchronous compositor. | 118 // Interface used to get notified of events from the synchronous compositor. |
| 117 SynchronousCompositorClient* synchronous_compositor_client_; | 119 SynchronousCompositorClient* synchronous_compositor_client_; |
| 118 | 120 |
| 119 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); | 121 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); |
| 120 }; | 122 }; |
| 121 | 123 |
| 122 } // namespace content | 124 } // namespace content |
| 123 | 125 |
| 124 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ | 126 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ |
| OLD | NEW |