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

Side by Side Diff: webkit/glue/webview.h

Issue 151195: Simplifying renderer focus management (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « webkit/glue/webframeloaderclient_impl.cc ('k') | webkit/glue/webview_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_GLUE_WEBVIEW_H_ 5 #ifndef WEBKIT_GLUE_WEBVIEW_H_
6 #define WEBKIT_GLUE_WEBVIEW_H_ 6 #define WEBKIT_GLUE_WEBVIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // - (IBAction)stopLoading:(id)sender; 105 // - (IBAction)stopLoading:(id)sender;
106 virtual void StopLoading() = 0; 106 virtual void StopLoading() = 0;
107 107
108 // Sets the maximum size to allow WebCore's internal B/F list to grow to. 108 // Sets the maximum size to allow WebCore's internal B/F list to grow to.
109 // If not called, the list will have the default capacity specified in 109 // If not called, the list will have the default capacity specified in
110 // BackForwardList.cpp. 110 // BackForwardList.cpp.
111 virtual void SetBackForwardListSize(int size) = 0; 111 virtual void SetBackForwardListSize(int size) = 0;
112 112
113 // ---- TODO(darin): remove to here ---- 113 // ---- TODO(darin): remove to here ----
114 114
115 // Restores focus to the previously focused element.
116 // This method is invoked when the webview is shown after being
117 // hidden, and focus is to be restored. When WebView loses focus, it remembers
118 // the frame/element that had focus, so that when this method is invoked
119 // focus is then restored.
120 virtual void RestoreFocus() = 0;
121
122 // Focus the first (last if reverse is true) focusable node. 115 // Focus the first (last if reverse is true) focusable node.
123 virtual void SetInitialFocus(bool reverse) = 0; 116 virtual void SetInitialFocus(bool reverse) = 0;
124 117
125 // Stores the focused node and clears it if |frame| is the focused frame.
126 // TODO(jcampan): http://b/issue?id=1157486 this is needed to work-around
127 // issues caused by the fix for bug #792423 and should be removed when that
128 // bug is fixed.
129 virtual void StoreFocusForFrame(WebFrame* frame) = 0;
130
131 // Clears the focused node (and selection if a text field is focused) to 118 // Clears the focused node (and selection if a text field is focused) to
132 // ensure that a text field on the page is not eating keystrokes we send it. 119 // ensure that a text field on the page is not eating keystrokes we send it.
133 virtual void ClearFocusedNode() = 0; 120 virtual void ClearFocusedNode() = 0;
134 121
135 // Requests the webview to download an image. When done, the delegate is 122 // Requests the webview to download an image. When done, the delegate is
136 // notified by way of DidDownloadImage. Returns true if the request was 123 // notified by way of DidDownloadImage. Returns true if the request was
137 // successfully started, false otherwise. id is used to uniquely identify the 124 // successfully started, false otherwise. id is used to uniquely identify the
138 // request and passed back to the DidDownloadImage method. If the image has 125 // request and passed back to the DidDownloadImage method. If the image has
139 // multiple frames, the frame whose size is image_size is returned. If the 126 // multiple frames, the frame whose size is image_size is returned. If the
140 // image doesn't have a frame at the specified size, the first is returned. 127 // image doesn't have a frame at the specified size, the first is returned.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // Makes the webview transparent. Useful if you want to have some custom 215 // Makes the webview transparent. Useful if you want to have some custom
229 // background behind it. 216 // background behind it.
230 virtual void SetIsTransparent(bool is_transparent) = 0; 217 virtual void SetIsTransparent(bool is_transparent) = 0;
231 virtual bool GetIsTransparent() const = 0; 218 virtual bool GetIsTransparent() const = 0;
232 219
233 private: 220 private:
234 DISALLOW_COPY_AND_ASSIGN(WebView); 221 DISALLOW_COPY_AND_ASSIGN(WebView);
235 }; 222 };
236 223
237 #endif // WEBKIT_GLUE_WEBVIEW_H_ 224 #endif // WEBKIT_GLUE_WEBVIEW_H_
OLDNEW
« no previous file with comments | « webkit/glue/webframeloaderclient_impl.cc ('k') | webkit/glue/webview_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698