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_TEST_TEST_WEB_CONTENTS_VIEW_H_ | 5 #ifndef CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ |
6 #define CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ | 6 #define CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "content/port/browser/render_view_host_delegate_view.h" | 9 #include "content/port/browser/render_view_host_delegate_view.h" |
10 #include "content/port/browser/web_contents_view_port.h" | 10 #include "content/port/browser/web_contents_view_port.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 bool right_aligned, | 26 bool right_aligned, |
27 bool allow_multiple_selection) OVERRIDE; | 27 bool allow_multiple_selection) OVERRIDE; |
28 virtual void StartDragging(const DropData& drop_data, | 28 virtual void StartDragging(const DropData& drop_data, |
29 WebKit::WebDragOperationsMask allowed_ops, | 29 WebKit::WebDragOperationsMask allowed_ops, |
30 const gfx::ImageSkia& image, | 30 const gfx::ImageSkia& image, |
31 const gfx::Vector2d& image_offset, | 31 const gfx::Vector2d& image_offset, |
32 const DragEventSourceInfo& event_info) OVERRIDE; | 32 const DragEventSourceInfo& event_info) OVERRIDE; |
33 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; | 33 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; |
34 virtual void GotFocus() OVERRIDE; | 34 virtual void GotFocus() OVERRIDE; |
35 virtual void TakeFocus(bool reverse) OVERRIDE; | 35 virtual void TakeFocus(bool reverse) OVERRIDE; |
| 36 virtual bool GrabSnapshot(const std::string& format, |
| 37 int quality, |
| 38 double scale, |
| 39 std::vector<uint8>* data) OVERRIDE; |
36 | 40 |
37 // WebContentsView: | 41 // WebContentsView: |
38 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 42 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
39 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; | 43 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; |
40 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; | 44 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; |
41 virtual void GetContainerBounds(gfx::Rect *out) const OVERRIDE; | 45 virtual void GetContainerBounds(gfx::Rect *out) const OVERRIDE; |
42 virtual void OnTabCrashed(base::TerminationStatus status, | 46 virtual void OnTabCrashed(base::TerminationStatus status, |
43 int error_code) OVERRIDE; | 47 int error_code) OVERRIDE; |
44 virtual void SizeContents(const gfx::Size& size) OVERRIDE; | 48 virtual void SizeContents(const gfx::Size& size) OVERRIDE; |
45 virtual void Focus() OVERRIDE; | 49 virtual void Focus() OVERRIDE; |
(...skipping 23 matching lines...) Expand all Loading... |
69 virtual void CloseTabAfterEventTracking() OVERRIDE; | 73 virtual void CloseTabAfterEventTracking() OVERRIDE; |
70 #endif | 74 #endif |
71 | 75 |
72 private: | 76 private: |
73 DISALLOW_COPY_AND_ASSIGN(TestWebContentsView); | 77 DISALLOW_COPY_AND_ASSIGN(TestWebContentsView); |
74 }; | 78 }; |
75 | 79 |
76 } // namespace content | 80 } // namespace content |
77 | 81 |
78 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ | 82 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ |
OLD | NEW |