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

Side by Side Diff: public/web/WebViewClient.h

Issue 309593007: Expand GPU rasterization trigger for Finch experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/tests/data/viewport/viewport-gpu-rasterization-expanded-heuristics.html ('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 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // children, to print. Otherwise, the main frame and its children 122 // children, to print. Otherwise, the main frame and its children
123 // should be printed. 123 // should be printed.
124 virtual void printPage(WebLocalFrame*) { } 124 virtual void printPage(WebLocalFrame*) { }
125 125
126 // This method enumerates all the files in the path. It returns immediately 126 // This method enumerates all the files in the path. It returns immediately
127 // and asynchronously invokes the WebFileChooserCompletion with all the 127 // and asynchronously invokes the WebFileChooserCompletion with all the
128 // files in the directory. Returns false if the WebFileChooserCompletion 128 // files in the directory. Returns false if the WebFileChooserCompletion
129 // will never be called. 129 // will never be called.
130 virtual bool enumerateChosenDirectory(const WebString& path, WebFileChooserC ompletion*) { return false; } 130 virtual bool enumerateChosenDirectory(const WebString& path, WebFileChooserC ompletion*) { return false; }
131 131
132 // Whether to use less-restrictive criteria for identifying pages that are
133 // candidates for GPU rasterization.
134 virtual bool useExpandedHeuristicsForGpuRasterization() { return false; }
abarth-chromium 2014/06/04 02:23:43 This should be a WebSetting.
ajuma 2014/06/04 14:48:00 Done.
132 135
abarth-chromium 2014/06/04 02:23:43 Two spaces between sections.
133 // Editing ------------------------------------------------------------- 136 // Editing -------------------------------------------------------------
134 137
135 // These methods allow the client to intercept and overrule editing 138 // These methods allow the client to intercept and overrule editing
136 // operations. 139 // operations.
137 virtual void didCancelCompositionOnSelectionChange() { } 140 virtual void didCancelCompositionOnSelectionChange() { }
138 virtual void didChangeContents() { } 141 virtual void didChangeContents() { }
139 142
140 // This method is called in response to WebView's handleInputEvent() 143 // This method is called in response to WebView's handleInputEvent()
141 // when the default action for the current keyboard event is not 144 // when the default action for the current keyboard event is not
142 // suppressed by the page, to give the embedder a chance to handle 145 // suppressed by the page, to give the embedder a chance to handle
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 // Informs the browser that the draggable regions have been updated. 327 // Informs the browser that the draggable regions have been updated.
325 virtual void draggableRegionsChanged() { } 328 virtual void draggableRegionsChanged() { }
326 329
327 protected: 330 protected:
328 ~WebViewClient() { } 331 ~WebViewClient() { }
329 }; 332 };
330 333
331 } // namespace blink 334 } // namespace blink
332 335
333 #endif 336 #endif
OLDNEW
« no previous file with comments | « Source/web/tests/data/viewport/viewport-gpu-rasterization-expanded-heuristics.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698