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_MAC_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 bool right_aligned, | 105 bool right_aligned, |
106 bool allow_multiple_selection) OVERRIDE; | 106 bool allow_multiple_selection) OVERRIDE; |
107 virtual void StartDragging(const DropData& drop_data, | 107 virtual void StartDragging(const DropData& drop_data, |
108 WebKit::WebDragOperationsMask allowed_operations, | 108 WebKit::WebDragOperationsMask allowed_operations, |
109 const gfx::ImageSkia& image, | 109 const gfx::ImageSkia& image, |
110 const gfx::Vector2d& image_offset, | 110 const gfx::Vector2d& image_offset, |
111 const DragEventSourceInfo& event_info) OVERRIDE; | 111 const DragEventSourceInfo& event_info) OVERRIDE; |
112 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; | 112 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; |
113 virtual void GotFocus() OVERRIDE; | 113 virtual void GotFocus() OVERRIDE; |
114 virtual void TakeFocus(bool reverse) OVERRIDE; | 114 virtual void TakeFocus(bool reverse) OVERRIDE; |
| 115 virtual bool GrabSnapshot(const std::string& format, |
| 116 int quality, |
| 117 double scale, |
| 118 std::vector<uint8>* data) OVERRIDE; |
115 | 119 |
116 // A helper method for closing the tab in the | 120 // A helper method for closing the tab in the |
117 // CloseTabAfterEventTracking() implementation. | 121 // CloseTabAfterEventTracking() implementation. |
118 void CloseTab(); | 122 void CloseTab(); |
119 | 123 |
120 WebContentsImpl* web_contents() { return web_contents_; } | 124 WebContentsImpl* web_contents() { return web_contents_; } |
121 WebContentsViewDelegate* delegate() { return delegate_.get(); } | 125 WebContentsViewDelegate* delegate() { return delegate_.get(); } |
122 | 126 |
123 private: | 127 private: |
124 // The WebContentsImpl whose contents we display. | 128 // The WebContentsImpl whose contents we display. |
(...skipping 11 matching lines...) Expand all Loading... |
136 | 140 |
137 // Whether to allow overlapping views. | 141 // Whether to allow overlapping views. |
138 bool allow_overlapping_views_; | 142 bool allow_overlapping_views_; |
139 | 143 |
140 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); | 144 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); |
141 }; | 145 }; |
142 | 146 |
143 } // namespace content | 147 } // namespace content |
144 | 148 |
145 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 149 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
OLD | NEW |