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

Side by Side Diff: Source/web/WebLocalFrameImpl.h

Issue 900543003: DevTools: do not abuse inspector controller for the front-end side plumbing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed initializer. Created 5 years, 10 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 | « Source/web/WebDevToolsFrontendImpl.cpp ('k') | Source/web/WebLocalFrameImpl.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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 class ChromePrintContext; 47 class ChromePrintContext;
48 class GeolocationClientProxy; 48 class GeolocationClientProxy;
49 class IntSize; 49 class IntSize;
50 class KURL; 50 class KURL;
51 class Range; 51 class Range;
52 class SharedWorkerRepositoryClientImpl; 52 class SharedWorkerRepositoryClientImpl;
53 class TextFinder; 53 class TextFinder;
54 class WebAutofillClient; 54 class WebAutofillClient;
55 class WebDataSourceImpl; 55 class WebDataSourceImpl;
56 class WebDevToolsFrontendImpl;
56 class WebFrameClient; 57 class WebFrameClient;
57 class WebFrameWidgetImpl; 58 class WebFrameWidgetImpl;
58 class WebPerformance; 59 class WebPerformance;
59 class WebPlugin; 60 class WebPlugin;
60 class WebPluginContainerImpl; 61 class WebPluginContainerImpl;
61 class WebScriptExecutionCallback; 62 class WebScriptExecutionCallback;
62 class WebView; 63 class WebView;
63 class WebViewImpl; 64 class WebViewImpl;
64 struct FrameLoadRequest; 65 struct FrameLoadRequest;
65 struct WebPrintParams; 66 struct WebPrintParams;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 315
315 // Invalidates both content area and the scrollbar. 316 // Invalidates both content area and the scrollbar.
316 void invalidateAll() const; 317 void invalidateAll() const;
317 318
318 // Returns a hit-tested VisiblePosition for the given point 319 // Returns a hit-tested VisiblePosition for the given point
319 VisiblePosition visiblePositionForWindowPoint(const WebPoint&); 320 VisiblePosition visiblePositionForWindowPoint(const WebPoint&);
320 321
321 void setFrameWidget(WebFrameWidgetImpl*); 322 void setFrameWidget(WebFrameWidgetImpl*);
322 WebFrameWidgetImpl* frameWidget() const; 323 WebFrameWidgetImpl* frameWidget() const;
323 324
325 // DevTools front-end bindings.
326 void setDevToolsFrontend(WebDevToolsFrontendImpl* frontend) { m_webDevToolsF rontend = frontend; }
327 WebDevToolsFrontendImpl* devToolsFrontend() { return m_webDevToolsFrontend; }
328
324 #if ENABLE(OILPAN) 329 #if ENABLE(OILPAN)
325 void trace(Visitor*); 330 void trace(Visitor*);
326 #endif 331 #endif
327 332
328 private: 333 private:
329 friend class FrameLoaderClientImpl; 334 friend class FrameLoaderClientImpl;
330 335
331 explicit WebLocalFrameImpl(WebFrameClient*); 336 explicit WebLocalFrameImpl(WebFrameClient*);
332 337
333 // Sets the local core frame and registers destruction observers. 338 // Sets the local core frame and registers destruction observers.
(...skipping 26 matching lines...) Expand all
360 OwnPtrWillBeMember<ChromePrintContext> m_printContext; 365 OwnPtrWillBeMember<ChromePrintContext> m_printContext;
361 366
362 // Stores the additional input events offset and scale when device metrics e mulation is enabled. 367 // Stores the additional input events offset and scale when device metrics e mulation is enabled.
363 IntSize m_inputEventsOffsetForEmulation; 368 IntSize m_inputEventsOffsetForEmulation;
364 float m_inputEventsScaleFactorForEmulation; 369 float m_inputEventsScaleFactorForEmulation;
365 370
366 UserMediaClientImpl m_userMediaClientImpl; 371 UserMediaClientImpl m_userMediaClientImpl;
367 372
368 OwnPtrWillBeMember<GeolocationClientProxy> m_geolocationClientProxy; 373 OwnPtrWillBeMember<GeolocationClientProxy> m_geolocationClientProxy;
369 374
375 WebDevToolsFrontendImpl* m_webDevToolsFrontend;
376
370 #if ENABLE(OILPAN) 377 #if ENABLE(OILPAN)
371 // Oilpan: to provide the guarantee of having the frame live until 378 // Oilpan: to provide the guarantee of having the frame live until
372 // close() is called, an instance keep a self-persistent. It is 379 // close() is called, an instance keep a self-persistent. It is
373 // cleared upon calling close(). This avoids having to assume that 380 // cleared upon calling close(). This avoids having to assume that
374 // an embedder's WebFrame references are all discovered via thread 381 // an embedder's WebFrame references are all discovered via thread
375 // state (stack, registers) should an Oilpan GC strike while we're 382 // state (stack, registers) should an Oilpan GC strike while we're
376 // in the process of detaching. 383 // in the process of detaching.
377 GC_PLUGIN_IGNORE("340522") 384 GC_PLUGIN_IGNORE("340522")
378 Persistent<WebLocalFrameImpl> m_selfKeepAlive; 385 Persistent<WebLocalFrameImpl> m_selfKeepAlive;
379 #endif 386 #endif
380 }; 387 };
381 388
382 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 389 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
383 390
384 } // namespace blink 391 } // namespace blink
385 392
386 #endif 393 #endif
OLDNEW
« no previous file with comments | « Source/web/WebDevToolsFrontendImpl.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698