OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 void didFail(const WebCore::ResourceError&, bool wasProvisional); | 295 void didFail(const WebCore::ResourceError&, bool wasProvisional); |
296 | 296 |
297 // Sets whether the WebFrameImpl allows its document to be scrolled. | 297 // Sets whether the WebFrameImpl allows its document to be scrolled. |
298 // If the parameter is true, allow the document to be scrolled. | 298 // If the parameter is true, allow the document to be scrolled. |
299 // Otherwise, disallow scrolling. | 299 // Otherwise, disallow scrolling. |
300 void setCanHaveScrollbars(bool); | 300 void setCanHaveScrollbars(bool); |
301 | 301 |
302 WebFrameClient* client() const { return m_client; } | 302 WebFrameClient* client() const { return m_client; } |
303 void setClient(WebFrameClient* client) { m_client = client; } | 303 void setClient(WebFrameClient* client) { m_client = client; } |
304 | 304 |
| 305 void setInputEventsScaleFactorForEmulation(float); |
| 306 |
305 static void selectWordAroundPosition(WebCore::Frame*, WebCore::VisiblePositi
on); | 307 static void selectWordAroundPosition(WebCore::Frame*, WebCore::VisiblePositi
on); |
306 | 308 |
307 private: | 309 private: |
308 class DeferredScopeStringMatches; | 310 class DeferredScopeStringMatches; |
309 friend class DeferredScopeStringMatches; | 311 friend class DeferredScopeStringMatches; |
310 friend class FrameLoaderClientImpl; | 312 friend class FrameLoaderClientImpl; |
311 | 313 |
312 struct FindMatch { | 314 struct FindMatch { |
313 RefPtr<WebCore::Range> m_range; | 315 RefPtr<WebCore::Range> m_range; |
314 | 316 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 // Valid between calls to BeginPrint() and EndPrint(). Containts the print | 494 // Valid between calls to BeginPrint() and EndPrint(). Containts the print |
493 // information. Is used by PrintPage(). | 495 // information. Is used by PrintPage(). |
494 OwnPtr<ChromePrintContext> m_printContext; | 496 OwnPtr<ChromePrintContext> m_printContext; |
495 | 497 |
496 // The identifier of this frame. | 498 // The identifier of this frame. |
497 long long m_embedderIdentifier; | 499 long long m_embedderIdentifier; |
498 | 500 |
499 // Ensure we don't overwrite valid history data during same document loads | 501 // Ensure we don't overwrite valid history data during same document loads |
500 // from HistoryItems | 502 // from HistoryItems |
501 bool m_inSameDocumentHistoryLoad; | 503 bool m_inSameDocumentHistoryLoad; |
| 504 |
| 505 // Stores the additional input evetns scale when device metrics emulation is
enabled. |
| 506 float m_inputEventsScaleFactorForEmulation; |
502 }; | 507 }; |
503 | 508 |
504 inline WebFrameImpl* toWebFrameImpl(WebFrame* webFrame) | 509 inline WebFrameImpl* toWebFrameImpl(WebFrame* webFrame) |
505 { | 510 { |
506 return static_cast<WebFrameImpl*>(webFrame); | 511 return static_cast<WebFrameImpl*>(webFrame); |
507 } | 512 } |
508 | 513 |
509 inline const WebFrameImpl* toWebFrameImpl(const WebFrame* webFrame) | 514 inline const WebFrameImpl* toWebFrameImpl(const WebFrame* webFrame) |
510 { | 515 { |
511 return static_cast<const WebFrameImpl*>(webFrame); | 516 return static_cast<const WebFrameImpl*>(webFrame); |
512 } | 517 } |
513 | 518 |
514 // This will catch anyone doing an unnecessary cast. | 519 // This will catch anyone doing an unnecessary cast. |
515 void toWebFrameImpl(const WebFrameImpl*); | 520 void toWebFrameImpl(const WebFrameImpl*); |
516 | 521 |
517 } // namespace WebKit | 522 } // namespace WebKit |
518 | 523 |
519 #endif | 524 #endif |
OLD | NEW |