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_GUEST_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 WebContents* web_contents(); | 38 WebContents* web_contents(); |
39 | 39 |
40 void OnGuestAttached(WebContentsView* parent_view); | 40 void OnGuestAttached(WebContentsView* parent_view); |
41 | 41 |
42 void OnGuestDetached(WebContentsView* old_parent_view); | 42 void OnGuestDetached(WebContentsView* old_parent_view); |
43 | 43 |
44 // WebContentsView implementation -------------------------------------------- | 44 // WebContentsView implementation -------------------------------------------- |
45 gfx::NativeView GetNativeView() const override; | 45 gfx::NativeView GetNativeView() const override; |
46 gfx::NativeView GetContentNativeView() const override; | 46 gfx::NativeView GetContentNativeView() const override; |
47 gfx::NativeWindow GetTopLevelNativeWindow() const override; | 47 gfx::NativeWindow GetTopLevelNativeWindow() const override; |
48 void GetScreenInfo(blink::WebScreenInfo* web_screen_info) const override; | 48 void GetScreenInfo(ScreenInfo* screen_info) const override; |
49 void GetContainerBounds(gfx::Rect* out) const override; | 49 void GetContainerBounds(gfx::Rect* out) const override; |
50 void SizeContents(const gfx::Size& size) override; | 50 void SizeContents(const gfx::Size& size) override; |
51 void Focus() override; | 51 void Focus() override; |
52 void SetInitialFocus() override; | 52 void SetInitialFocus() override; |
53 void StoreFocus() override; | 53 void StoreFocus() override; |
54 void RestoreFocus() override; | 54 void RestoreFocus() override; |
55 DropData* GetDropData() const override; | 55 DropData* GetDropData() const override; |
56 gfx::Rect GetViewBounds() const override; | 56 gfx::Rect GetViewBounds() const override; |
57 void CreateView(const gfx::Size& initial_size, | 57 void CreateView(const gfx::Size& initial_size, |
58 gfx::NativeView context) override; | 58 gfx::NativeView context) override; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 // Delegate view for guest's platform view. | 96 // Delegate view for guest's platform view. |
97 RenderViewHostDelegateView* platform_view_delegate_view_; | 97 RenderViewHostDelegateView* platform_view_delegate_view_; |
98 | 98 |
99 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGuest); | 99 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGuest); |
100 }; | 100 }; |
101 | 101 |
102 } // namespace content | 102 } // namespace content |
103 | 103 |
104 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ | 104 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ |
OLD | NEW |