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

Side by Side Diff: content/public/browser/web_contents_delegate.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 bool user_gesture) {} 424 bool user_gesture) {}
425 425
426 // Result of string search in the page. This includes the number of matches 426 // Result of string search in the page. This includes the number of matches
427 // found and the selection rect (in screen coordinates) for the string found. 427 // found and the selection rect (in screen coordinates) for the string found.
428 // If |final_update| is false, it indicates that more results follow. 428 // If |final_update| is false, it indicates that more results follow.
429 virtual void FindReply(WebContents* web_contents, 429 virtual void FindReply(WebContents* web_contents,
430 int request_id, 430 int request_id,
431 int number_of_matches, 431 int number_of_matches,
432 const gfx::Rect& selection_rect, 432 const gfx::Rect& selection_rect,
433 int active_match_ordinal, 433 int active_match_ordinal,
434 bool final_update) {} 434 bool final_update,
435 bool was_frame_removal) {}
435 436
436 #if defined(OS_ANDROID) 437 #if defined(OS_ANDROID)
437 // Provides the rects of the current find-in-page matches. 438 // Provides the rects of the current find-in-page matches.
438 // Sent as a reply to RequestFindMatchRects. 439 // Sent as a reply to RequestFindMatchRects.
439 virtual void FindMatchRectsReply(WebContents* web_contents, 440 virtual void FindMatchRectsReply(WebContents* web_contents,
440 int version, 441 int version,
441 const std::vector<gfx::RectF>& rects, 442 const std::vector<gfx::RectF>& rects,
442 const gfx::RectF& active_rect) {} 443 const gfx::RectF& active_rect) {}
443 #endif 444 #endif
444 445
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 // Called when |this| is no longer the WebContentsDelegate for |source|. 582 // Called when |this| is no longer the WebContentsDelegate for |source|.
582 void Detach(WebContents* source); 583 void Detach(WebContents* source);
583 584
584 // The WebContents that this is currently a delegate for. 585 // The WebContents that this is currently a delegate for.
585 std::set<WebContents*> attached_contents_; 586 std::set<WebContents*> attached_contents_;
586 }; 587 };
587 588
588 } // namespace content 589 } // namespace content
589 590
590 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 591 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/test/find_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698