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

Side by Side Diff: content/browser/tab_contents/tab_contents_delegate.h

Issue 7828025: Handle the ViewHostMsg_FindReply message which is sent by content(renderer) via the TabContentsDe... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 const string16& title); 331 const string16& title);
332 332
333 // WebIntent notification handler. 333 // WebIntent notification handler.
334 virtual void WebIntentDispatch(TabContents* tab, 334 virtual void WebIntentDispatch(TabContents* tab,
335 int routing_id, 335 int routing_id,
336 const string16& action, 336 const string16& action,
337 const string16& type, 337 const string16& type,
338 const string16& data, 338 const string16& data,
339 int intent_id); 339 int intent_id);
340 340
341 // Result of string search in the page. This includes the number of matches
342 // found and the selection rect (in screen coordinates) for the string found.
343 // If |final_update| is false, it indicates that more results follow.
344 virtual void FindReply(TabContents* tab,
345 int request_id,
346 int number_of_matches,
347 const gfx::Rect& selection_rect,
348 int active_match_ordinal,
349 bool final_update);
350
341 protected: 351 protected:
342 virtual ~TabContentsDelegate(); 352 virtual ~TabContentsDelegate();
343 353
344 private: 354 private:
345 friend class TabContents; 355 friend class TabContents;
346 356
347 // Called when |this| becomes the TabContentsDelegate for |source|. 357 // Called when |this| becomes the TabContentsDelegate for |source|.
348 void Attach(TabContents* source); 358 void Attach(TabContents* source);
349 359
350 // Called when |this| is no longer the TabContentsDelegate for |source|. 360 // Called when |this| is no longer the TabContentsDelegate for |source|.
351 void Detach(TabContents* source); 361 void Detach(TabContents* source);
352 362
353 // The TabContents that this is currently a delegate for. 363 // The TabContents that this is currently a delegate for.
354 std::set<TabContents*> attached_contents_; 364 std::set<TabContents*> attached_contents_;
355 }; 365 };
356 366
357 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 367 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/browser/tab_contents/tab_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698