OLD | NEW |
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 #include "web/WebExport.h" | 69 #include "web/WebExport.h" |
70 #include "web/WebPagePopupImpl.h" | 70 #include "web/WebPagePopupImpl.h" |
71 | 71 |
72 namespace blink { | 72 namespace blink { |
73 | 73 |
74 class BrowserControls; | 74 class BrowserControls; |
75 class CompositorAnimationHost; | 75 class CompositorAnimationHost; |
76 class DevToolsEmulator; | 76 class DevToolsEmulator; |
77 class Frame; | 77 class Frame; |
78 class FullscreenController; | 78 class FullscreenController; |
79 class InspectorOverlayAgent; | |
80 class LinkHighlightImpl; | 79 class LinkHighlightImpl; |
81 class PageOverlay; | 80 class PageOverlay; |
82 class PageScaleConstraintsSet; | 81 class PageScaleConstraintsSet; |
83 class PaintLayerCompositor; | 82 class PaintLayerCompositor; |
84 class UserGestureToken; | 83 class UserGestureToken; |
85 class WebActiveGestureAnimation; | 84 class WebActiveGestureAnimation; |
86 class WebDevToolsAgentImpl; | 85 class WebDevToolsAgentImpl; |
87 class WebElement; | 86 class WebElement; |
88 class WebInputMethodControllerImpl; | 87 class WebInputMethodControllerImpl; |
89 class WebLayerTreeView; | 88 class WebLayerTreeView; |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 // corresponding to the focused frame. It will return nullptr if there is no | 500 // corresponding to the focused frame. It will return nullptr if there is no |
502 // focused frame, or if the there is one but it belongs to a different local | 501 // focused frame, or if the there is one but it belongs to a different local |
503 // root. | 502 // root. |
504 WebInputMethodControllerImpl* GetActiveWebInputMethodController() const; | 503 WebInputMethodControllerImpl* GetActiveWebInputMethodController() const; |
505 | 504 |
506 void SetLastHiddenPagePopup(WebPagePopupImpl* page_popup) override { | 505 void SetLastHiddenPagePopup(WebPagePopupImpl* page_popup) override { |
507 last_hidden_page_popup_ = page_popup; | 506 last_hidden_page_popup_ = page_popup; |
508 } | 507 } |
509 | 508 |
510 private: | 509 private: |
511 InspectorOverlayAgent* GetInspectorOverlay(); | |
512 | |
513 void SetPageScaleFactorAndLocation(float, const FloatPoint&); | 510 void SetPageScaleFactorAndLocation(float, const FloatPoint&); |
514 void PropagateZoomFactorToLocalFrameRoots(Frame*, float); | 511 void PropagateZoomFactorToLocalFrameRoots(Frame*, float); |
515 | 512 |
516 void ScrollAndRescaleViewports(float scale_factor, | 513 void ScrollAndRescaleViewports(float scale_factor, |
517 const IntPoint& main_frame_origin, | 514 const IntPoint& main_frame_origin, |
518 const FloatPoint& visual_viewport_origin); | 515 const FloatPoint& visual_viewport_origin); |
519 | 516 |
520 float MaximumLegiblePageScale() const; | 517 float MaximumLegiblePageScale() const; |
521 void RefreshPageScaleFactorAfterLayout(); | 518 void RefreshPageScaleFactorAfterLayout(); |
522 IntSize ContentsSize() const; | 519 IntSize ContentsSize() const; |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; | 743 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; |
747 }; | 744 }; |
748 | 745 |
749 // We have no ways to check if the specified WebView is an instance of | 746 // We have no ways to check if the specified WebView is an instance of |
750 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 747 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
751 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 748 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
752 | 749 |
753 } // namespace blink | 750 } // namespace blink |
754 | 751 |
755 #endif | 752 #endif |
OLD | NEW |