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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 virtual void focusNext(); | 389 virtual void focusNext(); |
390 virtual void focusPrevious(); | 390 virtual void focusPrevious(); |
391 virtual void focusedNodeChanged(const WebKit::WebNode& node); | 391 virtual void focusedNodeChanged(const WebKit::WebNode& node); |
392 virtual void navigateBackForwardSoon(int offset); | 392 virtual void navigateBackForwardSoon(int offset); |
393 virtual int historyBackListCount(); | 393 virtual int historyBackListCount(); |
394 virtual int historyForwardListCount(); | 394 virtual int historyForwardListCount(); |
395 virtual void focusAccessibilityObject( | 395 virtual void focusAccessibilityObject( |
396 const WebKit::WebAccessibilityObject& acc_obj); | 396 const WebKit::WebAccessibilityObject& acc_obj); |
397 virtual void didChangeAccessibilityObjectState( | 397 virtual void didChangeAccessibilityObjectState( |
398 const WebKit::WebAccessibilityObject& acc_obj); | 398 const WebKit::WebAccessibilityObject& acc_obj); |
| 399 virtual void didChangeAccessibilityObjectChildren( |
| 400 const WebKit::WebAccessibilityObject& acc_obj); |
399 virtual void didUpdateInspectorSetting(const WebKit::WebString& key, | 401 virtual void didUpdateInspectorSetting(const WebKit::WebString& key, |
400 const WebKit::WebString& value); | 402 const WebKit::WebString& value); |
401 virtual void queryAutofillSuggestions(const WebKit::WebNode& node, | 403 virtual void queryAutofillSuggestions(const WebKit::WebNode& node, |
402 const WebKit::WebString& name, | 404 const WebKit::WebString& name, |
403 const WebKit::WebString& value); | 405 const WebKit::WebString& value); |
404 virtual void removeAutofillSuggestions(const WebKit::WebString& name, | 406 virtual void removeAutofillSuggestions(const WebKit::WebString& name, |
405 const WebKit::WebString& value); | 407 const WebKit::WebString& value); |
406 virtual void didAcceptAutoFillSuggestion(const WebKit::WebNode& node, | 408 virtual void didAcceptAutoFillSuggestion(const WebKit::WebNode& node, |
407 const WebKit::WebString& value, | 409 const WebKit::WebString& value, |
408 const WebKit::WebString& label, | 410 const WebKit::WebString& label, |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug | 700 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug |
699 // http://bugs.webkit.org/show_bug.cgi?id=16976 | 701 // http://bugs.webkit.org/show_bug.cgi?id=16976 |
700 void TextFieldDidChangeImpl(const WebKit::WebInputElement& element); | 702 void TextFieldDidChangeImpl(const WebKit::WebInputElement& element); |
701 | 703 |
702 // IPC message handlers ------------------------------------------------------ | 704 // IPC message handlers ------------------------------------------------------ |
703 // | 705 // |
704 // The documentation for these functions should be in | 706 // The documentation for these functions should be in |
705 // render_messages_internal.h for the message that the function is handling. | 707 // render_messages_internal.h for the message that the function is handling. |
706 | 708 |
707 void OnAccessibilityDoDefaultAction(int acc_obj_id); | 709 void OnAccessibilityDoDefaultAction(int acc_obj_id); |
| 710 void OnAccessibilityObjectChildrenChangeAck(); |
708 void OnAllowBindings(int enabled_bindings_flags); | 711 void OnAllowBindings(int enabled_bindings_flags); |
709 void OnAddMessageToConsole(const string16& frame_xpath, | 712 void OnAddMessageToConsole(const string16& frame_xpath, |
710 const string16& message, | 713 const string16& message, |
711 const WebKit::WebConsoleMessage::Level&); | 714 const WebKit::WebConsoleMessage::Level&); |
712 void OnAdvanceToNextMisspelling(); | 715 void OnAdvanceToNextMisspelling(); |
713 void OnAllowScriptToClose(bool script_can_close); | 716 void OnAllowScriptToClose(bool script_can_close); |
714 void OnAutocompleteSuggestionsReturned( | 717 void OnAutocompleteSuggestionsReturned( |
715 int query_id, | 718 int query_id, |
716 const std::vector<string16>& suggestions, | 719 const std::vector<string16>& suggestions, |
717 int default_suggestions_index); | 720 int default_suggestions_index); |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1230 | 1233 |
1231 scoped_refptr<AudioMessageFilter> audio_message_filter_; | 1234 scoped_refptr<AudioMessageFilter> audio_message_filter_; |
1232 | 1235 |
1233 // The geolocation dispatcher attached to this view, lazily initialized. | 1236 // The geolocation dispatcher attached to this view, lazily initialized. |
1234 scoped_ptr<GeolocationDispatcher> geolocation_dispatcher_; | 1237 scoped_ptr<GeolocationDispatcher> geolocation_dispatcher_; |
1235 | 1238 |
1236 // Handles accessibility requests into the renderer side, as well as | 1239 // Handles accessibility requests into the renderer side, as well as |
1237 // maintains the cache and other features of the accessibility tree. | 1240 // maintains the cache and other features of the accessibility tree. |
1238 scoped_ptr<WebKit::WebAccessibilityCache> accessibility_; | 1241 scoped_ptr<WebKit::WebAccessibilityCache> accessibility_; |
1239 | 1242 |
| 1243 std::vector<webkit_glue::WebAccessibility> accessibility_changes_; |
| 1244 |
1240 // The speech dispatcher attached to this view, lazily initialized. | 1245 // The speech dispatcher attached to this view, lazily initialized. |
1241 scoped_ptr<SpeechInputDispatcher> speech_input_dispatcher_; | 1246 scoped_ptr<SpeechInputDispatcher> speech_input_dispatcher_; |
1242 | 1247 |
1243 // Device orientation dispatcher attached to this view; lazily initialized. | 1248 // Device orientation dispatcher attached to this view; lazily initialized. |
1244 scoped_ptr<DeviceOrientationDispatcher> device_orientation_dispatcher_; | 1249 scoped_ptr<DeviceOrientationDispatcher> device_orientation_dispatcher_; |
1245 | 1250 |
1246 // Misc ---------------------------------------------------------------------- | 1251 // Misc ---------------------------------------------------------------------- |
1247 | 1252 |
1248 // The current and pending file chooser completion objects. If the queue is | 1253 // The current and pending file chooser completion objects. If the queue is |
1249 // nonempty, the first item represents the currently running file chooser | 1254 // nonempty, the first item represents the currently running file chooser |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1307 // ADDING NEW DATA? Please see if it fits appropriately in one of the above | 1312 // ADDING NEW DATA? Please see if it fits appropriately in one of the above |
1308 // sections rather than throwing it randomly at the end. If you're adding a | 1313 // sections rather than throwing it randomly at the end. If you're adding a |
1309 // bunch of stuff, you should probably create a helper class and put your | 1314 // bunch of stuff, you should probably create a helper class and put your |
1310 // data and methods on that to avoid bloating RenderView more. | 1315 // data and methods on that to avoid bloating RenderView more. |
1311 // --------------------------------------------------------------------------- | 1316 // --------------------------------------------------------------------------- |
1312 | 1317 |
1313 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1318 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1314 }; | 1319 }; |
1315 | 1320 |
1316 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1321 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |