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

Side by Side Diff: content/public/browser/web_contents.h

Issue 128453002: Move Find Operations from RenderViewHost to WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/process/kill.h" 13 #include "base/process/kill.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "base/supports_user_data.h" 15 #include "base/supports_user_data.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "content/public/browser/navigation_controller.h" 17 #include "content/public/browser/navigation_controller.h"
18 #include "content/public/browser/page_navigator.h" 18 #include "content/public/browser/page_navigator.h"
19 #include "content/public/browser/save_page_type.h" 19 #include "content/public/browser/save_page_type.h"
20 #include "content/public/browser/web_ui.h" 20 #include "content/public/browser/web_ui.h"
21 #include "content/public/common/stop_find_action.h"
21 #include "ipc/ipc_sender.h" 22 #include "ipc/ipc_sender.h"
22 #include "third_party/skia/include/core/SkColor.h" 23 #include "third_party/skia/include/core/SkColor.h"
23 #include "ui/base/window_open_disposition.h" 24 #include "ui/base/window_open_disposition.h"
24 #include "ui/gfx/native_widget_types.h" 25 #include "ui/gfx/native_widget_types.h"
25 #include "ui/gfx/size.h" 26 #include "ui/gfx/size.h"
26 27
27 #if defined(OS_ANDROID) 28 #if defined(OS_ANDROID)
28 #include "base/android/scoped_java_ref.h" 29 #include "base/android/scoped_java_ref.h"
29 #endif 30 #endif
30 31
31 namespace base { 32 namespace base {
32 class TimeTicks; 33 class TimeTicks;
33 } 34 }
34 35
36 namespace blink {
37 struct WebFindOptions;
38 }
39
35 namespace gfx { 40 namespace gfx {
36 class Rect; 41 class Rect;
37 class Size; 42 class Size;
38 } 43 }
39 44
40 namespace net { 45 namespace net {
41 struct LoadStateWithParam; 46 struct LoadStateWithParam;
42 } 47 }
43 48
44 namespace content { 49 namespace content {
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 bool is_favicon, 480 bool is_favicon,
476 uint32_t max_bitmap_size, 481 uint32_t max_bitmap_size,
477 const ImageDownloadCallback& callback) = 0; 482 const ImageDownloadCallback& callback) = 0;
478 483
479 // Returns true if the WebContents is responsible for displaying a subframe 484 // Returns true if the WebContents is responsible for displaying a subframe
480 // in a different process from its parent page. 485 // in a different process from its parent page.
481 // TODO: this doesn't really belong here. With site isolation, this should be 486 // TODO: this doesn't really belong here. With site isolation, this should be
482 // removed since we can then embed iframes in different processes. 487 // removed since we can then embed iframes in different processes.
483 virtual bool IsSubframe() const = 0; 488 virtual bool IsSubframe() const = 0;
484 489
490 // Finds text on a page.
491 virtual void Find(int request_id, const base::string16& search_text,
nasko 2014/01/08 17:29:13 style: arguments are one on a line for declaration
Fady Samuel 2014/01/08 17:39:57 Done.
492 const blink::WebFindOptions& options) = 0;
493
494 // Notifies the renderer that the user has closed the FindInPage window
495 // (and what action to take regarding the selection).
496 virtual void StopFinding(StopFindAction action) = 0;
497
485 #if defined(OS_ANDROID) 498 #if defined(OS_ANDROID)
486 CONTENT_EXPORT static WebContents* FromJavaWebContents( 499 CONTENT_EXPORT static WebContents* FromJavaWebContents(
487 jobject jweb_contents_android); 500 jobject jweb_contents_android);
488 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; 501 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0;
489 #endif // OS_ANDROID 502 #endif // OS_ANDROID
490 503
491 private: 504 private:
492 // This interface should only be implemented inside content. 505 // This interface should only be implemented inside content.
493 friend class WebContentsImpl; 506 friend class WebContentsImpl;
494 WebContents() {} 507 WebContents() {}
495 }; 508 };
496 509
497 } // namespace content 510 } // namespace content
498 511
499 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 512 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« content/public/browser/render_view_host.h ('K') | « content/public/browser/render_view_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698