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

Side by Side Diff: sky/engine/public/web/WebView.h

Issue 687003002: Remove PageOverlays. (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/public/web/WebPageOverlay.h ('k') | sky/engine/web/BUILD.gn » ('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, 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 27 matching lines...) Expand all
38 #include "WebPageVisibilityState.h" 38 #include "WebPageVisibilityState.h"
39 #include "WebWidget.h" 39 #include "WebWidget.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class WebFrame; 43 class WebFrame;
44 class WebFrameClient; 44 class WebFrameClient;
45 class WebGraphicsContext3D; 45 class WebGraphicsContext3D;
46 class WebHitTestResult; 46 class WebHitTestResult;
47 class WebNode; 47 class WebNode;
48 class WebPageOverlay;
49 class WebRange; 48 class WebRange;
50 class WebSettings; 49 class WebSettings;
51 class WebSpellCheckClient; 50 class WebSpellCheckClient;
52 class WebString; 51 class WebString;
53 class WebViewClient; 52 class WebViewClient;
54 struct WebActiveWheelFlingParameters; 53 struct WebActiveWheelFlingParameters;
55 struct WebMediaPlayerAction; 54 struct WebMediaPlayerAction;
56 struct WebPoint; 55 struct WebPoint;
57 struct WebFloatPoint; 56 struct WebFloatPoint;
58 57
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // the out-parameter on success. |bounds| coordinates will be relative to 282 // the out-parameter on success. |bounds| coordinates will be relative to
284 // the contents window and will take into account the current scale level. 283 // the contents window and will take into account the current scale level.
285 virtual void getSelectionRootBounds(WebRect& bounds) const = 0; 284 virtual void getSelectionRootBounds(WebRect& bounds) const = 0;
286 285
287 // Visibility ----------------------------------------------------------- 286 // Visibility -----------------------------------------------------------
288 287
289 // Sets the visibility of the WebView. 288 // Sets the visibility of the WebView.
290 virtual void setVisibilityState(WebPageVisibilityState visibilityState, 289 virtual void setVisibilityState(WebPageVisibilityState visibilityState,
291 bool isInitialState) { } 290 bool isInitialState) { }
292 291
293 // PageOverlay ----------------------------------------------------------
294
295 // Adds/removes page overlay to this WebView. These functions change the
296 // graphical appearance of the WebView. WebPageOverlay paints the
297 // contents of the page overlay. It also provides an z-order number for
298 // the page overlay. The z-order number defines the paint order the page
299 // overlays. Page overlays with larger z-order number will be painted after
300 // page overlays with smaller z-order number. That is, they appear above
301 // the page overlays with smaller z-order number. If two page overlays have
302 // the same z-order number, the later added one will be on top.
303 virtual void addPageOverlay(WebPageOverlay*, int /*z-order*/) = 0;
304 virtual void removePageOverlay(WebPageOverlay*) = 0;
305
306
307 // i18n ----------------------------------------------------------------- 292 // i18n -----------------------------------------------------------------
308 293
309 // Inform the WebView that the accept languages have changed. 294 // Inform the WebView that the accept languages have changed.
310 // If the WebView wants to get the accept languages value, it will have 295 // If the WebView wants to get the accept languages value, it will have
311 // to call the WebViewClient::acceptLanguages(). 296 // to call the WebViewClient::acceptLanguages().
312 virtual void acceptLanguagesChanged() = 0; 297 virtual void acceptLanguagesChanged() = 0;
313 298
314 // Testing functionality for TestRunner --------------------------------- 299 // Testing functionality for TestRunner ---------------------------------
315 300
316 protected: 301 protected:
317 ~WebView() {} 302 ~WebView() {}
318 }; 303 };
319 304
320 } // namespace blink 305 } // namespace blink
321 306
322 #endif 307 #endif
OLDNEW
« no previous file with comments | « sky/engine/public/web/WebPageOverlay.h ('k') | sky/engine/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698