| 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 30 matching lines...) Expand all Loading... |
| 41 #include "wtf/text/WTFString.h" | 41 #include "wtf/text/WTFString.h" |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 class GraphicsContext; | 45 class GraphicsContext; |
| 46 class IntSize; | 46 class IntSize; |
| 47 class KURL; | 47 class KURL; |
| 48 class Node; | 48 class Node; |
| 49 class Range; | 49 class Range; |
| 50 class WebFrameClient; | 50 class WebFrameClient; |
| 51 class WebPerformance; | |
| 52 class WebView; | 51 class WebView; |
| 53 class WebViewImpl; | 52 class WebViewImpl; |
| 54 | 53 |
| 55 template <typename T> class WebVector; | 54 template <typename T> class WebVector; |
| 56 | 55 |
| 57 // Implementation of WebFrame, note that this is a reference counted object. | 56 // Implementation of WebFrame, note that this is a reference counted object. |
| 58 class WebLocalFrameImpl FINAL | 57 class WebLocalFrameImpl FINAL |
| 59 : public WebLocalFrame | 58 : public WebLocalFrame |
| 60 , public RefCounted<WebLocalFrameImpl> { | 59 , public RefCounted<WebLocalFrameImpl> { |
| 61 public: | 60 public: |
| 62 // WebFrame methods: | 61 // WebFrame methods: |
| 63 virtual bool isWebLocalFrame() const override; | 62 virtual bool isWebLocalFrame() const override; |
| 64 virtual WebLocalFrame* toWebLocalFrame() override; | 63 virtual WebLocalFrame* toWebLocalFrame() override; |
| 65 virtual void close() override; | 64 virtual void close() override; |
| 66 virtual WebSize contentsSize() const override; | 65 virtual WebSize contentsSize() const override; |
| 67 virtual bool hasVisibleContent() const override; | 66 virtual bool hasVisibleContent() const override; |
| 68 virtual WebRect visibleContentRect() const override; | 67 virtual WebRect visibleContentRect() const override; |
| 69 virtual bool hasHorizontalScrollbar() const override; | 68 virtual bool hasHorizontalScrollbar() const override; |
| 70 virtual bool hasVerticalScrollbar() const override; | 69 virtual bool hasVerticalScrollbar() const override; |
| 71 virtual WebView* view() const override; | 70 virtual WebView* view() const override; |
| 72 virtual WebDocument document() const override; | 71 virtual WebDocument document() const override; |
| 73 virtual WebPerformance performance() const override; | |
| 74 virtual void executeScript(const WebScriptSource&) override; | 72 virtual void executeScript(const WebScriptSource&) override; |
| 75 virtual void executeScriptInIsolatedWorld( | 73 virtual void executeScriptInIsolatedWorld( |
| 76 int worldID, const WebScriptSource* sources, unsigned numSources, | 74 int worldID, const WebScriptSource* sources, unsigned numSources, |
| 77 int extensionGroup) override; | 75 int extensionGroup) override; |
| 78 virtual void setIsolatedWorldHumanReadableName(int worldID, const WebString&
) override; | 76 virtual void setIsolatedWorldHumanReadableName(int worldID, const WebString&
) override; |
| 79 virtual void addMessageToConsole(const WebConsoleMessage&) override; | 77 virtual void addMessageToConsole(const WebConsoleMessage&) override; |
| 80 virtual void collectGarbage() override; | 78 virtual void collectGarbage() override; |
| 81 virtual v8::Handle<v8::Value> executeScriptAndReturnValue( | 79 virtual v8::Handle<v8::Value> executeScriptAndReturnValue( |
| 82 const WebScriptSource&) override; | 80 const WebScriptSource&) override; |
| 83 virtual void executeScriptInIsolatedWorld( | 81 virtual void executeScriptInIsolatedWorld( |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 // Stores the additional input events offset and scale when device metrics e
mulation is enabled. | 179 // Stores the additional input events offset and scale when device metrics e
mulation is enabled. |
| 182 IntSize m_inputEventsOffsetForEmulation; | 180 IntSize m_inputEventsOffsetForEmulation; |
| 183 float m_inputEventsScaleFactorForEmulation; | 181 float m_inputEventsScaleFactorForEmulation; |
| 184 }; | 182 }; |
| 185 | 183 |
| 186 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); | 184 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); |
| 187 | 185 |
| 188 } // namespace blink | 186 } // namespace blink |
| 189 | 187 |
| 190 #endif | 188 #endif |
| OLD | NEW |