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

Side by Side Diff: sky/engine/web/WebLocalFrameImpl.cpp

Issue 693603005: Remove lots of dead web/ classes. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/web/WebLocalFrameImpl.h ('k') | sky/engine/web/WebNode.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 #include "public/platform/Platform.h" 131 #include "public/platform/Platform.h"
132 #include "public/platform/WebFloatPoint.h" 132 #include "public/platform/WebFloatPoint.h"
133 #include "public/platform/WebFloatRect.h" 133 #include "public/platform/WebFloatRect.h"
134 #include "public/platform/WebLayer.h" 134 #include "public/platform/WebLayer.h"
135 #include "public/platform/WebPoint.h" 135 #include "public/platform/WebPoint.h"
136 #include "public/platform/WebRect.h" 136 #include "public/platform/WebRect.h"
137 #include "public/platform/WebSize.h" 137 #include "public/platform/WebSize.h"
138 #include "public/platform/WebURLError.h" 138 #include "public/platform/WebURLError.h"
139 #include "public/platform/WebVector.h" 139 #include "public/platform/WebVector.h"
140 #include "public/web/WebConsoleMessage.h" 140 #include "public/web/WebConsoleMessage.h"
141 #include "public/web/WebDOMEvent.h"
142 #include "public/web/WebDocument.h" 141 #include "public/web/WebDocument.h"
143 #include "public/web/WebElement.h" 142 #include "public/web/WebElement.h"
144 #include "public/web/WebFindOptions.h"
145 #include "public/web/WebFrameClient.h" 143 #include "public/web/WebFrameClient.h"
146 #include "public/web/WebIconURL.h"
147 #include "public/web/WebNode.h" 144 #include "public/web/WebNode.h"
148 #include "public/web/WebPerformance.h"
149 #include "public/web/WebRange.h" 145 #include "public/web/WebRange.h"
150 #include "public/web/WebScriptSource.h" 146 #include "public/web/WebScriptSource.h"
151 #include "public/web/WebSerializedScriptValue.h"
152 #include "web/CompositionUnderlineVectorBuilder.h" 147 #include "web/CompositionUnderlineVectorBuilder.h"
153 #include "web/WebViewImpl.h" 148 #include "web/WebViewImpl.h"
154 #include "wtf/CurrentTime.h" 149 #include "wtf/CurrentTime.h"
155 #include "wtf/HashMap.h" 150 #include "wtf/HashMap.h"
156 #include <algorithm> 151 #include <algorithm>
157 152
158 namespace blink { 153 namespace blink {
159 154
160 static int frameCount = 0; 155 static int frameCount = 0;
161 156
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 return viewImpl(); 253 return viewImpl();
259 } 254 }
260 255
261 WebDocument WebLocalFrameImpl::document() const 256 WebDocument WebLocalFrameImpl::document() const
262 { 257 {
263 if (!frame() || !frame()->document()) 258 if (!frame() || !frame()->document())
264 return WebDocument(); 259 return WebDocument();
265 return WebDocument(frame()->document()); 260 return WebDocument(frame()->document());
266 } 261 }
267 262
268 WebPerformance WebLocalFrameImpl::performance() const
269 {
270 return WebPerformance();
271 }
272
273 void WebLocalFrameImpl::executeScript(const WebScriptSource& source) 263 void WebLocalFrameImpl::executeScript(const WebScriptSource& source)
274 { 264 {
275 ASSERT(frame()); 265 ASSERT(frame());
276 TextPosition position(OrdinalNumber::fromOneBasedInt(source.startLine), Ordi nalNumber::first()); 266 TextPosition position(OrdinalNumber::fromOneBasedInt(source.startLine), Ordi nalNumber::first());
277 v8::HandleScope handleScope(toIsolate(frame())); 267 v8::HandleScope handleScope(toIsolate(frame()));
278 frame()->script().executeScriptInMainWorld(ScriptSourceCode(source.code, sou rce.url, position)); 268 frame()->script().executeScriptInMainWorld(ScriptSourceCode(source.code, sou rce.url, position));
279 } 269 }
280 270
281 void WebLocalFrameImpl::executeScriptInIsolatedWorld(int worldID, const WebScrip tSource* sourcesIn, unsigned numSources, int extensionGroup) 271 void WebLocalFrameImpl::executeScriptInIsolatedWorld(int worldID, const WebScrip tSource* sourcesIn, unsigned numSources, int extensionGroup)
282 { 272 {
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 } 783 }
794 784
795 void WebLocalFrameImpl::invalidateAll() const 785 void WebLocalFrameImpl::invalidateAll() const
796 { 786 {
797 ASSERT(frame() && frame()->view()); 787 ASSERT(frame() && frame()->view());
798 FrameView* view = frame()->view(); 788 FrameView* view = frame()->view();
799 view->invalidateRect(view->frameRect()); 789 view->invalidateRect(view->frameRect());
800 } 790 }
801 791
802 } // namespace blink 792 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/web/WebLocalFrameImpl.h ('k') | sky/engine/web/WebNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698