OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_RENDERER_RENDER_VIEW_H__ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H__ |
6 #define CHROME_RENDERER_RENDER_VIEW_H__ | 6 #define CHROME_RENDERER_RENDER_VIEW_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/scoped_handle.h" | 12 #include "base/scoped_handle.h" |
13 #include "base/gfx/point.h" | 13 #include "base/gfx/point.h" |
14 #include "base/gfx/rect.h" | 14 #include "base/gfx/rect.h" |
15 #include "base/timer.h" | 15 #include "base/timer.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/common/resource_dispatcher.h" | 17 #include "chrome/common/resource_dispatcher.h" |
18 #ifdef CHROME_PERSONALIZATION | 18 #ifdef CHROME_PERSONALIZATION |
19 #include "chrome/personalization/personalization.h" | 19 #include "chrome/personalization/personalization.h" |
20 #endif | 20 #endif |
21 #include "chrome/renderer/automation/dom_automation_controller.h" | 21 #include "chrome/renderer/automation/dom_automation_controller.h" |
22 #include "chrome/renderer/dom_ui_bindings.h" | 22 #include "chrome/renderer/dom_ui_bindings.h" |
23 #include "chrome/renderer/external_host_bindings.h" | 23 #include "chrome/renderer/external_host_bindings.h" |
24 #include "chrome/renderer/external_js_object.h" | 24 #include "chrome/renderer/external_js_object.h" |
25 #include "chrome/renderer/render_process.h" | 25 #include "chrome/renderer/render_process.h" |
26 #include "chrome/renderer/render_widget.h" | 26 #include "chrome/renderer/render_widget.h" |
27 #include "webkit/glue/console_message_level.h" | 27 #include "webkit/glue/console_message_level.h" |
28 #include "webkit/glue/dom_serializer_delegate.h" | 28 #include "webkit/glue/dom_serializer_delegate.h" |
| 29 #include "webkit/glue/glue_accessibility.h" |
29 #include "webkit/glue/webview_delegate.h" | 30 #include "webkit/glue/webview_delegate.h" |
30 #include "webkit/glue/webview.h" | 31 #include "webkit/glue/webview.h" |
31 | 32 |
32 // RenderView is a diamond-shaped hierarchy, with WebWidgetDelegate at the root. | 33 // RenderView is a diamond-shaped hierarchy, with WebWidgetDelegate at the root. |
33 // VS warns when we inherit the WebWidgetDelegate method implementations from | 34 // VS warns when we inherit the WebWidgetDelegate method implementations from |
34 // RenderWidget. It's safe to ignore that warning. | 35 // RenderWidget. It's safe to ignore that warning. |
35 #pragma warning(disable: 4250) | 36 #pragma warning(disable: 4250) |
36 | 37 |
37 class DebugMessageHandler; | 38 class DebugMessageHandler; |
38 class GURL; | 39 class GURL; |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 void OnReservePageIDRange(int size_of_range); | 412 void OnReservePageIDRange(int size_of_range); |
412 | 413 |
413 void OnDragSourceEndedOrMoved( | 414 void OnDragSourceEndedOrMoved( |
414 int client_x, int client_y, int screen_x, int screen_y, bool ended); | 415 int client_x, int client_y, int screen_x, int screen_y, bool ended); |
415 void OnDragSourceSystemDragEnded(); | 416 void OnDragSourceSystemDragEnded(); |
416 void OnInstallMissingPlugin(); | 417 void OnInstallMissingPlugin(); |
417 void OnFileChooserResponse(const std::wstring& file_name); | 418 void OnFileChooserResponse(const std::wstring& file_name); |
418 void OnEnableViewSourceMode(); | 419 void OnEnableViewSourceMode(); |
419 void OnUpdateBackForwardListCount(int back_list_count, | 420 void OnUpdateBackForwardListCount(int back_list_count, |
420 int forward_list_count); | 421 int forward_list_count); |
| 422 void OnGetAccessibilityInfo(const ViewMsg_Accessibility_In_Params& in_params, |
| 423 ViewHostMsg_Accessibility_Out_Params* out_params); |
| 424 void OnClearAccessibilityInfo(int iaccessible_id, bool clear_all); |
421 | 425 |
422 // Checks if the RenderView should close, runs the beforeunload handler and | 426 // Checks if the RenderView should close, runs the beforeunload handler and |
423 // sends ViewMsg_ShouldClose to the browser. | 427 // sends ViewMsg_ShouldClose to the browser. |
424 void OnMsgShouldClose(); | 428 void OnMsgShouldClose(); |
425 | 429 |
426 // Runs the onunload handler and closes the page, replying with ClosePage_ACK | 430 // Runs the onunload handler and closes the page, replying with ClosePage_ACK |
427 // (with the given RPH and request IDs, to help track the request). | 431 // (with the given RPH and request IDs, to help track the request). |
428 void OnClosePage(int new_render_process_host_id, int new_request_id); | 432 void OnClosePage(int new_render_process_host_id, int new_request_id); |
429 | 433 |
430 // Notification about ui theme changes. | 434 // Notification about ui theme changes. |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 | 609 |
606 int history_back_list_count_; | 610 int history_back_list_count_; |
607 int history_forward_list_count_; | 611 int history_forward_list_count_; |
608 | 612 |
609 // True if pop-up blocking is disabled. False by default. | 613 // True if pop-up blocking is disabled. False by default. |
610 bool disable_popup_blocking_; | 614 bool disable_popup_blocking_; |
611 | 615 |
612 // True if the page has any frame-level unload or beforeunload listeners. | 616 // True if the page has any frame-level unload or beforeunload listeners. |
613 bool has_unload_listener_; | 617 bool has_unload_listener_; |
614 | 618 |
| 619 // Handles accessibility requests into the renderer side, as well as |
| 620 // maintains the cache and other features of the accessibility tree. |
| 621 scoped_ptr<GlueAccessibility> glue_accessibility_; |
| 622 |
615 DISALLOW_EVIL_CONSTRUCTORS(RenderView); | 623 DISALLOW_EVIL_CONSTRUCTORS(RenderView); |
616 }; | 624 }; |
617 | 625 |
618 #endif // CHROME_RENDERER_RENDER_VIEW_H__ | 626 #endif // CHROME_RENDERER_RENDER_VIEW_H__ |
OLD | NEW |