OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 WEBKIT_MOCKS_MOCK_WEBFRAME_H_ | 5 #ifndef WEBKIT_MOCKS_MOCK_WEBFRAME_H_ |
6 #define WEBKIT_MOCKS_MOCK_WEBFRAME_H_ | 6 #define WEBKIT_MOCKS_MOCK_WEBFRAME_H_ |
7 | 7 |
8 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 } | 260 } |
261 virtual WebString selectionAsText() const { | 261 virtual WebString selectionAsText() const { |
262 return WebString(); | 262 return WebString(); |
263 } | 263 } |
264 virtual WebString selectionAsMarkup() const { | 264 virtual WebString selectionAsMarkup() const { |
265 return WebString(); | 265 return WebString(); |
266 } | 266 } |
267 virtual bool selectWordAroundCaret() { | 267 virtual bool selectWordAroundCaret() { |
268 return false; | 268 return false; |
269 } | 269 } |
270 #if defined(WEBFRAME_PRINTBEGIN_TAKES_NODE) | |
271 virtual int printBegin(const WebSize& pageSize, | 270 virtual int printBegin(const WebSize& pageSize, |
272 const WebNode& constrainToNode, | 271 const WebNode& constrainToNode, |
273 int printerDPI = 72, | 272 int printerDPI = 72, |
274 bool* useBrowserOverlays = 0) { | 273 bool* useBrowserOverlays = 0) { |
275 #else | |
276 virtual int printBegin(const WebSize& pageSize, int printerDPI = 72, | |
277 bool* useBrowserOverlays = 0) { | |
278 #endif | |
279 return 0; | 274 return 0; |
280 } | 275 } |
281 virtual float getPrintPageShrink(int page) { | 276 virtual float getPrintPageShrink(int page) { |
282 return 0; | 277 return 0; |
283 } | 278 } |
284 virtual float printPage(int pageToPrint, WebCanvas*) { | 279 virtual float printPage(int pageToPrint, WebCanvas*) { |
285 return 0; | 280 return 0; |
286 } | 281 } |
287 virtual void printEnd() {} | 282 virtual void printEnd() {} |
288 virtual bool isPageBoxVisible(int pageIndex) { | 283 virtual bool isPageBoxVisible(int pageIndex) { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 return WebString(); | 346 return WebString(); |
352 } | 347 } |
353 | 348 |
354 private: | 349 private: |
355 DISALLOW_COPY_AND_ASSIGN(MockWebFrame); | 350 DISALLOW_COPY_AND_ASSIGN(MockWebFrame); |
356 }; | 351 }; |
357 | 352 |
358 } // namespace webkit_glue | 353 } // namespace webkit_glue |
359 | 354 |
360 #endif // WEBKIT_MOCKS_MOCK_WEBFRAME_H_ | 355 #endif // WEBKIT_MOCKS_MOCK_WEBFRAME_H_ |
OLD | NEW |