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

Side by Side Diff: third_party/WebKit/public/web/WebView.h

Issue 1918183004: Switch the inheritance of WebView from WebWidget to protected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/public/web/WebLocalFrame.h ('k') | no next file » | 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, 2010, 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011, 2012 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 class WebViewClient; 62 class WebViewClient;
63 class WebViewScheduler; 63 class WebViewScheduler;
64 struct WebActiveWheelFlingParameters; 64 struct WebActiveWheelFlingParameters;
65 struct WebDeviceEmulationParams; 65 struct WebDeviceEmulationParams;
66 struct WebFloatPoint; 66 struct WebFloatPoint;
67 struct WebMediaPlayerAction; 67 struct WebMediaPlayerAction;
68 struct WebPluginAction; 68 struct WebPluginAction;
69 struct WebPoint; 69 struct WebPoint;
70 struct WebWindowFeatures; 70 struct WebWindowFeatures;
71 71
72 class WebView : public WebWidget { 72 class WebView : protected WebWidget {
73 public: 73 public:
74 BLINK_EXPORT static const double textSizeMultiplierRatio; 74 BLINK_EXPORT static const double textSizeMultiplierRatio;
75 BLINK_EXPORT static const double minTextSizeMultiplier; 75 BLINK_EXPORT static const double minTextSizeMultiplier;
76 BLINK_EXPORT static const double maxTextSizeMultiplier; 76 BLINK_EXPORT static const double maxTextSizeMultiplier;
77 77
78 enum StyleInjectionTarget { 78 enum StyleInjectionTarget {
79 InjectStyleInAllFrames, 79 InjectStyleInAllFrames,
80 InjectStyleInTopFrameOnly 80 InjectStyleInTopFrameOnly
81 }; 81 };
82 82
83 // WebWidget overrides.
84 using WebWidget::close;
85 using WebWidget::size;
86 using WebWidget::resize;
87 using WebWidget::resizeVisualViewport;
88 using WebWidget::didEnterFullScreen;
89 using WebWidget::didExitFullScreen;
90 using WebWidget::beginFrame;
91 using WebWidget::updateAllLifecyclePhases;
92 using WebWidget::paint;
93 using WebWidget::paintIgnoringCompositing;
94 using WebWidget::layoutAndPaintAsync;
95 using WebWidget::compositeAndReadbackAsync;
96 using WebWidget::themeChanged;
97 using WebWidget::handleInputEvent;
98 using WebWidget::setCursorVisibilityState;
99 using WebWidget::hasTouchEventHandlersAt;
100 using WebWidget::applyViewportDeltas;
101 using WebWidget::mouseCaptureLost;
102 using WebWidget::setFocus;
103 using WebWidget::setComposition;
104 using WebWidget::confirmComposition;
105 using WebWidget::compositionRange;
106 using WebWidget::textInputInfo;
107 using WebWidget::textInputType;
108 using WebWidget::selectionBounds;
109 using WebWidget::selectionTextDirection;
110 using WebWidget::isSelectionAnchorFirst;
111 using WebWidget::caretOrSelectionRange;
112 using WebWidget::setTextDirection;
113 using WebWidget::isAcceleratedCompositingActive;
114 using WebWidget::isWebView;
115 using WebWidget::isPagePopup;
116 using WebWidget::willCloseLayerTreeView;
117 using WebWidget::didAcquirePointerLock;
118 using WebWidget::didNotAcquirePointerLock;
119 using WebWidget::didLosePointerLock;
120 using WebWidget::didChangeWindowResizerRect;
121 using WebWidget::backgroundColor;
122 using WebWidget::pagePopup;
123 using WebWidget::updateTopControlsState;
83 124
84 // Initialization ------------------------------------------------------ 125 // Initialization ------------------------------------------------------
85 126
86 // Creates a WebView that is NOT yet initialized. You will need to 127 // Creates a WebView that is NOT yet initialized. You will need to
87 // call setMainFrame to finish the initialization. It is valid 128 // call setMainFrame to finish the initialization. It is valid
88 // to pass a null client pointer. 129 // to pass a null client pointer.
89 BLINK_EXPORT static WebView* create(WebViewClient*); 130 BLINK_EXPORT static WebView* create(WebViewClient*);
90 131
91 // After creating a WebView, you should immediately call this method. 132 // After creating a WebView, you should immediately call this method.
92 // You can optionally modify the settings before calling this method. 133 // You can optionally modify the settings before calling this method.
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 // Testing functionality for TestRunner --------------------------------- 522 // Testing functionality for TestRunner ---------------------------------
482 523
483 // Force the webgl context to fail so that webglcontextcreationerror 524 // Force the webgl context to fail so that webglcontextcreationerror
484 // event gets generated/tested. 525 // event gets generated/tested.
485 virtual void forceNextWebGLContextCreationToFail() = 0; 526 virtual void forceNextWebGLContextCreationToFail() = 0;
486 527
487 // Force the drawing buffer used by webgl contexts to fail so that the webgl 528 // Force the drawing buffer used by webgl contexts to fail so that the webgl
488 // context's ability to deal with that failure gracefully can be tested. 529 // context's ability to deal with that failure gracefully can be tested.
489 virtual void forceNextDrawingBufferCreationToFail() = 0; 530 virtual void forceNextDrawingBufferCreationToFail() = 0;
490 531
532 // TODO(lfg): Remove this once the refactor of WebView/WebWidget is
533 // completed.
534 WebWidget* widget() { return this; }
535
491 protected: 536 protected:
492 ~WebView() {} 537 ~WebView() {}
493 }; 538 };
494 539
495 } // namespace blink 540 } // namespace blink
496 541
497 #endif 542 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebLocalFrame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698