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

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

Issue 4283: Fix bug 455: Active match in Find is not selected and links are not focused a... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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
« no previous file with comments | « webkit/glue/webframe.h ('k') | webkit/glue/webframe_impl.cc » ('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) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual void CallJSGC(); 117 virtual void CallJSGC();
118 118
119 virtual void* GetFrameImplementation() { return frame(); } 119 virtual void* GetFrameImplementation() { return frame(); }
120 120
121 virtual void GetContentAsPlainText(int max_chars, std::wstring* text) const; 121 virtual void GetContentAsPlainText(int max_chars, std::wstring* text) const;
122 virtual bool Find(const FindInPageRequest& request, 122 virtual bool Find(const FindInPageRequest& request,
123 bool wrap_within_frame, 123 bool wrap_within_frame,
124 gfx::Rect* selection_rect); 124 gfx::Rect* selection_rect);
125 virtual bool FindNext(const FindInPageRequest& request, 125 virtual bool FindNext(const FindInPageRequest& request,
126 bool wrap_within_frame); 126 bool wrap_within_frame);
127 virtual void StopFinding(); 127 virtual void StopFinding(bool clear_selection);
128 virtual void ScopeStringMatches(FindInPageRequest request, bool reset); 128 virtual void ScopeStringMatches(FindInPageRequest request, bool reset);
129 virtual void CancelPendingScopingEffort(); 129 virtual void CancelPendingScopingEffort();
130 virtual void ResetMatchCount(); 130 virtual void ResetMatchCount();
131 virtual bool Visible(); 131 virtual bool Visible();
132 virtual void SelectAll(); 132 virtual void SelectAll();
133 virtual void Copy(); 133 virtual void Copy();
134 virtual void Cut(); 134 virtual void Cut();
135 virtual void Paste(); 135 virtual void Paste();
136 virtual void Replace(const std::wstring& text); 136 virtual void Replace(const std::wstring& text);
137 virtual void Delete(); 137 virtual void Delete();
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // value can be NULL if no frame has an active tickmark. 244 // value can be NULL if no frame has an active tickmark.
245 const WebFrameImpl* active_tickmark_frame() const { 245 const WebFrameImpl* active_tickmark_frame() const {
246 return active_tickmark_frame_; 246 return active_tickmark_frame_;
247 } 247 }
248 248
249 // Returns the index of the active tickmark for this frame. 249 // Returns the index of the active tickmark for this frame.
250 size_t active_tickmark_index() const { 250 size_t active_tickmark_index() const {
251 return active_tickmark_; 251 return active_tickmark_;
252 } 252 }
253 253
254 // When a Find operation ends, we want to set the selection to what was active
255 // and set focus to the first focusable node we find (starting with the first
256 // node in the matched range and going up the inheritance chain). If we find
257 // nothing to focus we focus the first focusable node in the range. This
258 // allows us to set focus to a link (when we find text inside a link), which
259 // allows us to navigate by pressing Enter after closing the Find box.
260 void SetFindEndstateFocusAndSelection();
261
254 // Sets whether the WebFrameImpl allows its document to be scrolled. 262 // Sets whether the WebFrameImpl allows its document to be scrolled.
255 // If the parameter is true, allow the document to be scrolled. 263 // If the parameter is true, allow the document to be scrolled.
256 // Otherwise, disallow scrolling 264 // Otherwise, disallow scrolling
257 void SetAllowsScrolling(bool flag); 265 void SetAllowsScrolling(bool flag);
258 266
259 // Returns true if the frame CSS is in "printing" mode. 267 // Returns true if the frame CSS is in "printing" mode.
260 bool printing() const { return printing_; } 268 bool printing() const { return printing_; }
261 269
262 virtual bool HasUnloadListener(); 270 virtual bool HasUnloadListener();
263 virtual bool IsReloadAllowingStaleData() const; 271 virtual bool IsReloadAllowingStaleData() const;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 // In "printing" mode. Used as a state check. 439 // In "printing" mode. Used as a state check.
432 bool printing_; 440 bool printing_;
433 441
434 // For each printed page, the view of the document in pixels. 442 // For each printed page, the view of the document in pixels.
435 Vector<WebCore::IntRect> pages_; 443 Vector<WebCore::IntRect> pages_;
436 444
437 DISALLOW_COPY_AND_ASSIGN(WebFrameImpl); 445 DISALLOW_COPY_AND_ASSIGN(WebFrameImpl);
438 }; 446 };
439 447
440 #endif // WEBKIT_GLUE_WEBFRAME_IMPL_H_ 448 #endif // WEBKIT_GLUE_WEBFRAME_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/glue/webframe.h ('k') | webkit/glue/webframe_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698