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

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

Issue 2349523002: Add support for edit commands in OOPIFs. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « third_party/WebKit/public/web/WebFrameClient.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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // in screen coordinates. 113 // in screen coordinates.
114 virtual WebRect rootWindowRect() { return WebRect(); } 114 virtual WebRect rootWindowRect() { return WebRect(); }
115 115
116 // Editing ------------------------------------------------------------- 116 // Editing -------------------------------------------------------------
117 117
118 // These methods allow the client to intercept and overrule editing 118 // These methods allow the client to intercept and overrule editing
119 // operations. 119 // operations.
120 virtual void didCancelCompositionOnSelectionChange() { } 120 virtual void didCancelCompositionOnSelectionChange() { }
121 virtual void didChangeContents() { } 121 virtual void didChangeContents() { }
122 122
123 // This method is called in response to WebView's handleInputEvent()
124 // when the default action for the current keyboard event is not
125 // suppressed by the page, to give the embedder a chance to handle
126 // the keyboard event specially.
127 //
128 // Returns true if the keyboard event was handled by the embedder,
129 // indicating that the default action should be suppressed.
130 virtual bool handleCurrentKeyboardEvent() { return false; }
131
132 // Dialogs ------------------------------------------------------------- 123 // Dialogs -------------------------------------------------------------
133 124
134 // Ask users to choose date/time for the specified parameters. When a user 125 // Ask users to choose date/time for the specified parameters. When a user
135 // chooses a value, an implementation of this function should call 126 // chooses a value, an implementation of this function should call
136 // WebDateTimeChooserCompletion::didChooseValue or didCancelChooser. If the 127 // WebDateTimeChooserCompletion::didChooseValue or didCancelChooser. If the
137 // implementation opened date/time chooser UI successfully, it should return 128 // implementation opened date/time chooser UI successfully, it should return
138 // true. This function is used only if ExternalDateTimeChooser is used. 129 // true. This function is used only if ExternalDateTimeChooser is used.
139 virtual bool openDateTimeChooser(const WebDateTimeChooserParams&, WebDateTim eChooserCompletion*) { return false; } 130 virtual bool openDateTimeChooser(const WebDateTimeChooserParams&, WebDateTim eChooserCompletion*) { return false; }
140 131
141 // Show a notification popup for the specified form validation messages 132 // Show a notification popup for the specified form validation messages
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 WebRect windowResizerRect() override { return WebRect(); } 268 WebRect windowResizerRect() override { return WebRect(); }
278 virtual WebWidgetClient* widgetClient() { return this; } 269 virtual WebWidgetClient* widgetClient() { return this; }
279 270
280 protected: 271 protected:
281 ~WebViewClient() { } 272 ~WebViewClient() { }
282 }; 273 };
283 274
284 } // namespace blink 275 } // namespace blink
285 276
286 #endif 277 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698