| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "chrome/browser/find_bar_controller.h" |
| 12 #include "chrome/browser/renderer_host/render_widget_host.h" | 13 #include "chrome/browser/renderer_host/render_widget_host.h" |
| 13 #include "chrome/common/content_settings_types.h" | 14 #include "chrome/common/content_settings_types.h" |
| 14 #include "chrome/common/page_zoom.h" | 15 #include "chrome/common/page_zoom.h" |
| 15 #include "chrome/common/view_types.h" | 16 #include "chrome/common/view_types.h" |
| 16 #include "net/base/load_states.h" | 17 #include "net/base/load_states.h" |
| 17 #include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h" | 18 #include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h" |
| 18 #include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h" | 19 #include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h" |
| 19 #include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h" | 20 #include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h" |
| 20 #include "webkit/glue/form_field_values.h" | 21 #include "webkit/glue/form_field_values.h" |
| 21 #include "webkit/glue/password_form_dom_manager.h" | 22 #include "webkit/glue/password_form_dom_manager.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 void PrintingDone(int document_cookie, bool success); | 198 void PrintingDone(int document_cookie, bool success); |
| 198 | 199 |
| 199 // Start looking for a string within the content of the page, with the | 200 // Start looking for a string within the content of the page, with the |
| 200 // specified options. | 201 // specified options. |
| 201 void StartFinding(int request_id, | 202 void StartFinding(int request_id, |
| 202 const string16& search_string, | 203 const string16& search_string, |
| 203 bool forward, | 204 bool forward, |
| 204 bool match_case, | 205 bool match_case, |
| 205 bool find_next); | 206 bool find_next); |
| 206 | 207 |
| 207 // Cancel a pending find operation. If |clear_selection| is true, it will also | 208 // Cancel a pending find operation. |
| 208 // clear the selection on the focused frame. | 209 void StopFinding(FindBarController::SelectionAction selection_action); |
| 209 void StopFinding(bool clear_selection); | |
| 210 | 210 |
| 211 // Change the zoom level of a page. | 211 // Change the zoom level of a page. |
| 212 void Zoom(PageZoom::Function function); | 212 void Zoom(PageZoom::Function function); |
| 213 | 213 |
| 214 // Change the encoding of the page. | 214 // Change the encoding of the page. |
| 215 void SetPageEncoding(const std::string& encoding); | 215 void SetPageEncoding(const std::string& encoding); |
| 216 | 216 |
| 217 // Reset any override encoding on the page and change back to default. | 217 // Reset any override encoding on the page and change back to default. |
| 218 void ResetPageEncodingToDefault(); | 218 void ResetPageEncodingToDefault(); |
| 219 | 219 |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 // True if the render view can be shut down suddenly. | 685 // True if the render view can be shut down suddenly. |
| 686 bool sudden_termination_allowed_; | 686 bool sudden_termination_allowed_; |
| 687 | 687 |
| 688 // The session storage namespace id to be used by the associated render view. | 688 // The session storage namespace id to be used by the associated render view. |
| 689 int64 session_storage_namespace_id_; | 689 int64 session_storage_namespace_id_; |
| 690 | 690 |
| 691 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 691 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 692 }; | 692 }; |
| 693 | 693 |
| 694 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 694 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |