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

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

Issue 1316033003: [DevTools] Make WebDevToolsAgentImpl own InspectorOverlayImpl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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/WebLocalFrameImpl.cpp ('k') | Source/web/WebViewImpl.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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 #include "wtf/OwnPtr.h" 65 #include "wtf/OwnPtr.h"
66 #include "wtf/RefCounted.h" 66 #include "wtf/RefCounted.h"
67 #include "wtf/Vector.h" 67 #include "wtf/Vector.h"
68 68
69 namespace blink { 69 namespace blink {
70 70
71 class DataObject; 71 class DataObject;
72 class DevToolsEmulator; 72 class DevToolsEmulator;
73 class Frame; 73 class Frame;
74 class FullscreenController; 74 class FullscreenController;
75 class InspectorOverlay;
76 class InspectorOverlayImpl; 75 class InspectorOverlayImpl;
77 class LinkHighlightImpl; 76 class LinkHighlightImpl;
78 class PageOverlay; 77 class PageOverlay;
79 class PageScaleConstraintsSet; 78 class PageScaleConstraintsSet;
80 class DeprecatedPaintLayerCompositor; 79 class DeprecatedPaintLayerCompositor;
81 class TopControls; 80 class TopControls;
82 class UserGestureToken; 81 class UserGestureToken;
83 class WebActiveGestureAnimation; 82 class WebActiveGestureAnimation;
84 class WebDevToolsAgentImpl; 83 class WebDevToolsAgentImpl;
85 class WebElement; 84 class WebElement;
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 324
326 // Returns the page object associated with this view. This may be null when 325 // Returns the page object associated with this view. This may be null when
327 // the page is shutting down, but will be valid at all other times. 326 // the page is shutting down, but will be valid at all other times.
328 Page* page() const 327 Page* page() const
329 { 328 {
330 return m_page.get(); 329 return m_page.get();
331 } 330 }
332 331
333 WebDevToolsAgentImpl* mainFrameDevToolsAgentImpl(); 332 WebDevToolsAgentImpl* mainFrameDevToolsAgentImpl();
334 333
335 InspectorOverlay* inspectorOverlay();
336
337 DevToolsEmulator* devToolsEmulator() const 334 DevToolsEmulator* devToolsEmulator() const
338 { 335 {
339 return m_devToolsEmulator.get(); 336 return m_devToolsEmulator.get();
340 } 337 }
341 338
342 // Returns the main frame associated with this view. This may be null when 339 // Returns the main frame associated with this view. This may be null when
343 // the page is shutting down, but will be valid at all other times. 340 // the page is shutting down, but will be valid at all other times.
344 WebLocalFrameImpl* mainFrameImpl(); 341 WebLocalFrameImpl* mainFrameImpl();
345 342
346 // FIXME: Temporary method to accommodate out-of-process frame ancestors; 343 // FIXME: Temporary method to accommodate out-of-process frame ancestors;
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 IntSize mainFrameSize(); 527 IntSize mainFrameSize();
531 WebDisplayMode displayMode() const { return m_displayMode; } 528 WebDisplayMode displayMode() const { return m_displayMode; }
532 529
533 PageScaleConstraintsSet& pageScaleConstraintsSet() const; 530 PageScaleConstraintsSet& pageScaleConstraintsSet() const;
534 531
535 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } 532 FloatSize elasticOverscroll() const { return m_elasticOverscroll; }
536 533
537 WebPageImportanceSignals& pageImportanceSignals() { return m_pageImportanceS ignals; } 534 WebPageImportanceSignals& pageImportanceSignals() { return m_pageImportanceS ignals; }
538 535
539 private: 536 private:
537 InspectorOverlayImpl* inspectorOverlay();
538
540 void setPageScaleFactorAndLocation(float, const FloatPoint&); 539 void setPageScaleFactorAndLocation(float, const FloatPoint&);
541 540
542 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO rigin, const FloatPoint& visualViewportOrigin); 541 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO rigin, const FloatPoint& visualViewportOrigin);
543 542
544 float maximumLegiblePageScale() const; 543 float maximumLegiblePageScale() const;
545 void refreshPageScaleFactorAfterLayout(); 544 void refreshPageScaleFactorAfterLayout();
546 void resetScrollAndScaleState(bool immediately); 545 void resetScrollAndScaleState(bool immediately);
547 void resumeTreeViewCommits(); 546 void resumeTreeViewCommits();
548 IntSize contentsSize() const; 547 IntSize contentsSize() const;
549 548
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 }; 771 };
773 772
774 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 773 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
775 // We have no ways to check if the specified WebView is an instance of 774 // We have no ways to check if the specified WebView is an instance of
776 // WebViewImpl because WebViewImpl is the only implementation of WebView. 775 // WebViewImpl because WebViewImpl is the only implementation of WebView.
777 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 776 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
778 777
779 } // namespace blink 778 } // namespace blink
780 779
781 #endif 780 #endif
OLDNEW
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698