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

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

Issue 23187005: [DevTools] Use device metrics emulation implemented in content. (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Created 7 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
« Source/web/WebViewImpl.cpp ('K') | « public/web/WebDevToolsAgent.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 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // This method enumerates all the files in the path. It returns immediately 145 // This method enumerates all the files in the path. It returns immediately
146 // and asynchronously invokes the WebFileChooserCompletion with all the 146 // and asynchronously invokes the WebFileChooserCompletion with all the
147 // files in the directory. Returns false if the WebFileChooserCompletion 147 // files in the directory. Returns false if the WebFileChooserCompletion
148 // will never be called. 148 // will never be called.
149 virtual bool enumerateChosenDirectory(const WebString& path, WebFileChooserC ompletion*) { return false; } 149 virtual bool enumerateChosenDirectory(const WebString& path, WebFileChooserC ompletion*) { return false; }
150 150
151 // Creates the main WebFrame for the specified WebHelperPlugin. 151 // Creates the main WebFrame for the specified WebHelperPlugin.
152 // Called by WebHelperPlugin to provide the WebFrameClient interface for the WebFrame. 152 // Called by WebHelperPlugin to provide the WebFrameClient interface for the WebFrame.
153 virtual void initializeHelperPluginWebFrame(WebHelperPlugin*) { } 153 virtual void initializeHelperPluginWebFrame(WebHelperPlugin*) { }
154 154
155 // Called to emulate device. Window should occupy the whole device screen,
pfeldman 2013/09/19 12:46:05 // Called to emulate device dimensions and scale f
dgozman 2013/09/19 13:59:38 Done.
156 // while the view should be located at |viewRect|.
157 virtual void emulateDevice(
158 bool enabled, const WebSize& deviceSize, const WebRect& viewRect,
apavlov 2013/09/19 12:47:57 perhaps, deviceSize -> screenSize?
dgozman 2013/09/19 13:59:38 Done.
159 float deviceScaleFactor, bool fitToView) { }
155 160
156 // Navigational -------------------------------------------------------- 161 // Navigational --------------------------------------------------------
157 162
158 // These notifications bracket any loading that occurs in the WebView. 163 // These notifications bracket any loading that occurs in the WebView.
159 virtual void didStartLoading() { } 164 virtual void didStartLoading() { }
160 virtual void didStopLoading() { } 165 virtual void didStopLoading() { }
161 166
162 // Notification that some progress was made loading the current page. 167 // Notification that some progress was made loading the current page.
163 // loadProgress is a value between 0 (nothing loaded) and 1.0 (frame fully 168 // loadProgress is a value between 0 (nothing loaded) and 1.0 (frame fully
164 // loaded). 169 // loaded).
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 // Informs the browser that the draggable regions have been updated. 403 // Informs the browser that the draggable regions have been updated.
399 virtual void draggableRegionsChanged() { } 404 virtual void draggableRegionsChanged() { }
400 405
401 protected: 406 protected:
402 ~WebViewClient() { } 407 ~WebViewClient() { }
403 }; 408 };
404 409
405 } // namespace WebKit 410 } // namespace WebKit
406 411
407 #endif 412 #endif
OLDNEW
« Source/web/WebViewImpl.cpp ('K') | « public/web/WebDevToolsAgent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698