Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(462)

Side by Side Diff: webkit/mocks/mock_webframe.h

Issue 6626047: Definition for new API method in WebKit::WebFrame. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/mocks/mock_webframe.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 virtual void enableViewSourceMode(bool); 134 virtual void enableViewSourceMode(bool);
135 virtual bool isViewSourceModeEnabled() const; 135 virtual bool isViewSourceModeEnabled() const;
136 // The next two methods were mocked above. 136 // The next two methods were mocked above.
137 // virtual void setReferrerForRequest(WebURLRequest&, const WebURL&) {} 137 // virtual void setReferrerForRequest(WebURLRequest&, const WebURL&) {}
138 // virtual void dispatchWillSendRequest(WebURLRequest&) {} 138 // virtual void dispatchWillSendRequest(WebURLRequest&) {}
139 virtual WebURLLoader* createAssociatedURLLoader(); 139 virtual WebURLLoader* createAssociatedURLLoader();
140 virtual void commitDocumentData(const char* data, size_t length); 140 virtual void commitDocumentData(const char* data, size_t length);
141 virtual unsigned unloadListenerCount() const; 141 virtual unsigned unloadListenerCount() const;
142 virtual bool isProcessingUserGesture() const; 142 virtual bool isProcessingUserGesture() const;
143 virtual bool willSuppressOpenerInNewFrame() const; 143 virtual bool willSuppressOpenerInNewFrame() const;
144 virtual bool pageDismissalEventBeingDispatched() const;
144 virtual void replaceSelection(const WebString& text); 145 virtual void replaceSelection(const WebString& text);
145 virtual void insertText(const WebString& text); 146 virtual void insertText(const WebString& text);
146 virtual void setMarkedText(const WebString& text, 147 virtual void setMarkedText(const WebString& text,
147 unsigned location, 148 unsigned location,
148 unsigned length); 149 unsigned length);
149 virtual void unmarkText(); 150 virtual void unmarkText();
150 virtual bool hasMarkedText() const; 151 virtual bool hasMarkedText() const;
151 virtual WebRange markedRange() const; 152 virtual WebRange markedRange() const;
152 virtual bool firstRectForCharacterRange(unsigned location, 153 virtual bool firstRectForCharacterRange(unsigned location,
153 unsigned length, 154 unsigned length,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 const WebString& elementId); 210 const WebString& elementId);
210 virtual WebString layerTreeAsText() const; 211 virtual WebString layerTreeAsText() const;
211 212
212 private: 213 private:
213 DISALLOW_COPY_AND_ASSIGN(MockWebFrame); 214 DISALLOW_COPY_AND_ASSIGN(MockWebFrame);
214 }; 215 };
215 216
216 } // namespace webkit_glue 217 } // namespace webkit_glue
217 218
218 #endif // WEBKIT_MOCKS_MOCK_WEBFRAME_H_ 219 #endif // WEBKIT_MOCKS_MOCK_WEBFRAME_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/mocks/mock_webframe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698