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

Side by Side Diff: content/browser/find_request_manager.h

Issue 2723253002: Fix beep when navigating/closing a page with find bar open
Patch Set: android Created 3 years, 9 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CONTENT_BROWSER_FIND_REQUEST_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_FIND_REQUEST_MANAGER_H_
6 #define CONTENT_BROWSER_FIND_REQUEST_MANAGER_H_ 6 #define CONTENT_BROWSER_FIND_REQUEST_MANAGER_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <unordered_map> 9 #include <unordered_map>
10 #include <unordered_set> 10 #include <unordered_set>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // Called when an informative response (a response with enough information to 118 // Called when an informative response (a response with enough information to
119 // be able to route subsequent find requests) comes in for the find request 119 // be able to route subsequent find requests) comes in for the find request
120 // with ID |request_id|. Advances the |find_request_queue_| if appropriate. 120 // with ID |request_id|. Advances the |find_request_queue_| if appropriate.
121 void AdvanceQueue(int request_id); 121 void AdvanceQueue(int request_id);
122 122
123 // Sends a find IPC containing the find request |request| to the RenderFrame 123 // Sends a find IPC containing the find request |request| to the RenderFrame
124 // associated with |rfh|. 124 // associated with |rfh|.
125 void SendFindIPC(const FindRequest& request, RenderFrameHost* rfh); 125 void SendFindIPC(const FindRequest& request, RenderFrameHost* rfh);
126 126
127 // Sends the find results (as they currently are) to the WebContents. 127 // Sends the find results (as they currently are) to the WebContents.
128 void NotifyFindReply(int request_id, bool final_update); 128 void NotifyFindReply(int request_id,
129 bool final_update,
130 bool was_frame_removal);
129 131
130 // Returns the initial frame in search order. This will be either the first 132 // Returns the initial frame in search order. This will be either the first
131 // frame, if searching forward, or the last frame, if searching backward. 133 // frame, if searching forward, or the last frame, if searching backward.
132 RenderFrameHost* GetInitialFrame(bool forward) const; 134 RenderFrameHost* GetInitialFrame(bool forward) const;
133 135
134 // Traverses the frame tree to find and return the next RenderFrameHost after 136 // Traverses the frame tree to find and return the next RenderFrameHost after
135 // |from_rfh| in search order. |forward| indicates whether the frame tree 137 // |from_rfh| in search order. |forward| indicates whether the frame tree
136 // should be traversed forward (if true) or backward (if false). If 138 // should be traversed forward (if true) or backward (if false). If
137 // |matches_only| is set, then the frame tree will be traversed until the 139 // |matches_only| is set, then the frame tree will be traversed until the
138 // first frame is found for which matches have been found. If |wrap| is set, 140 // first frame is found for which matches have been found. If |wrap| is set,
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 std::queue<FindRequest> find_request_queue_; 306 std::queue<FindRequest> find_request_queue_;
305 307
306 // Keeps track of the find request ID of the last find reply reported via 308 // Keeps track of the find request ID of the last find reply reported via
307 // NotifyFindReply(). 309 // NotifyFindReply().
308 int last_reported_id_; 310 int last_reported_id_;
309 }; 311 };
310 312
311 } // namespace content 313 } // namespace content
312 314
313 #endif // CONTENT_BROWSER_FIND_REQUEST_MANAGER_H_ 315 #endif // CONTENT_BROWSER_FIND_REQUEST_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/download/mhtml_generation_browsertest.cc ('k') | content/browser/find_request_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698