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 GetScreenInfo(ScreenInfo* screen_info) const override; |
40 void GetContainerBounds(gfx::Rect* out) const override; | 40 void GetContainerBounds(gfx::Rect* out) const override; |
41 void SizeContents(const gfx::Size& size) override; | 41 void SizeContents(const gfx::Size& size) override; |
42 void Focus() override; | 42 void Focus() override; |
43 void SetInitialFocus() override; | 43 void SetInitialFocus() override; |
44 void StoreFocus() override; | 44 void StoreFocus() override; |
45 void RestoreFocus() override; | 45 void RestoreFocus() override; |
46 DropData* GetDropData() const override; | 46 DropData* GetDropData() const override; |
47 gfx::Rect GetViewBounds() const override; | 47 gfx::Rect GetViewBounds() const override; |
48 void CreateView(const gfx::Size& initial_size, | 48 void CreateView(const gfx::Size& initial_size, |
49 gfx::NativeView context) override; | 49 gfx::NativeView context) override; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 // Interface for extensions to WebContentsView. Used to show the context menu. | 99 // Interface for extensions to WebContentsView. Used to show the context menu. |
100 std::unique_ptr<WebContentsViewDelegate> delegate_; | 100 std::unique_ptr<WebContentsViewDelegate> delegate_; |
101 | 101 |
102 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); | 102 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); |
103 }; | 103 }; |
104 | 104 |
105 } // namespace content | 105 } // namespace content |
106 | 106 |
107 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ | 107 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ |
OLD | NEW |