| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 // Sets the interface to the view system. ContentViewCoreImpl is owned | 30 // Sets the interface to the view system. ContentViewCoreImpl is owned |
| 31 // by its Java ContentViewCore counterpart, whose lifetime is managed | 31 // by its Java ContentViewCore counterpart, whose lifetime is managed |
| 32 // by the UI frontend. | 32 // by the UI frontend. |
| 33 void SetContentViewCore(ContentViewCoreImpl* content_view_core); | 33 void SetContentViewCore(ContentViewCoreImpl* content_view_core); |
| 34 | 34 |
| 35 // WebContentsView implementation -------------------------------------------- | 35 // WebContentsView implementation -------------------------------------------- |
| 36 gfx::NativeView GetNativeView() const override; | 36 gfx::NativeView GetNativeView() const override; |
| 37 gfx::NativeView GetContentNativeView() const override; | 37 gfx::NativeView GetContentNativeView() const override; |
| 38 gfx::NativeWindow GetTopLevelNativeWindow() const override; | 38 gfx::NativeWindow GetTopLevelNativeWindow() const override; |
| 39 void GetScreenInfo(blink::WebScreenInfo* web_screen_info) const override; |
| 39 void GetContainerBounds(gfx::Rect* out) const override; | 40 void GetContainerBounds(gfx::Rect* out) const override; |
| 40 void SizeContents(const gfx::Size& size) override; | 41 void SizeContents(const gfx::Size& size) override; |
| 41 void Focus() override; | 42 void Focus() override; |
| 42 void SetInitialFocus() override; | 43 void SetInitialFocus() override; |
| 43 void StoreFocus() override; | 44 void StoreFocus() override; |
| 44 void RestoreFocus() override; | 45 void RestoreFocus() override; |
| 45 DropData* GetDropData() const override; | 46 DropData* GetDropData() const override; |
| 46 gfx::Rect GetViewBounds() const override; | 47 gfx::Rect GetViewBounds() const override; |
| 47 void CreateView(const gfx::Size& initial_size, | 48 void CreateView(const gfx::Size& initial_size, |
| 48 gfx::NativeView context) override; | 49 gfx::NativeView context) override; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 98 |
| 98 // Interface for extensions to WebContentsView. Used to show the context menu. | 99 // Interface for extensions to WebContentsView. Used to show the context menu. |
| 99 std::unique_ptr<WebContentsViewDelegate> delegate_; | 100 std::unique_ptr<WebContentsViewDelegate> delegate_; |
| 100 | 101 |
| 101 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); | 102 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 } // namespace content | 105 } // namespace content |
| 105 | 106 |
| 106 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ | 107 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ |
| OLD | NEW |