| 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 |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 | 273 |
| 274 virtual void TakeFocus(WebView* webview, bool reverse); | 274 virtual void TakeFocus(WebView* webview, bool reverse); |
| 275 virtual void JSOutOfMemory(); | 275 virtual void JSOutOfMemory(); |
| 276 | 276 |
| 277 virtual WebHistoryItem* GetHistoryEntryAtOffset(int offset); | 277 virtual WebHistoryItem* GetHistoryEntryAtOffset(int offset); |
| 278 virtual int GetHistoryBackListCount(); | 278 virtual int GetHistoryBackListCount(); |
| 279 virtual int GetHistoryForwardListCount(); | 279 virtual int GetHistoryForwardListCount(); |
| 280 virtual void OnNavStateChanged(WebView* webview); | 280 virtual void OnNavStateChanged(WebView* webview); |
| 281 virtual void SetTooltipText(WebView* webview, | 281 virtual void SetTooltipText(WebView* webview, |
| 282 const std::wstring& tooltip_text); | 282 const std::wstring& tooltip_text); |
| 283 // Called when the text selection changed. This is only called on linux since |
| 284 // on other platforms the RenderView doesn't act as an editor client delegate. |
| 285 virtual void DidChangeSelection(bool is_empty_selection); |
| 283 | 286 |
| 284 virtual void DownloadUrl(const GURL& url, const GURL& referrer); | 287 virtual void DownloadUrl(const GURL& url, const GURL& referrer); |
| 285 | 288 |
| 286 virtual WebDevToolsAgentDelegate* GetWebDevToolsAgentDelegate(); | 289 virtual WebDevToolsAgentDelegate* GetWebDevToolsAgentDelegate(); |
| 287 | 290 |
| 288 virtual void PasteFromSelectionClipboard(); | 291 virtual void PasteFromSelectionClipboard(); |
| 289 | 292 |
| 290 virtual void OnPasswordFormsSeen(WebView* webview, | 293 virtual void OnPasswordFormsSeen(WebView* webview, |
| 291 const std::vector<PasswordForm>& forms); | 294 const std::vector<PasswordForm>& forms); |
| 292 | 295 |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 // Received when internal state of browser process' audio output device has | 589 // Received when internal state of browser process' audio output device has |
| 587 // changed. | 590 // changed. |
| 588 void OnAudioStreamStateChanged(int stream_id, AudioOutputStream::State state, | 591 void OnAudioStreamStateChanged(int stream_id, AudioOutputStream::State state, |
| 589 int info); | 592 int info); |
| 590 | 593 |
| 591 // Notification of volume property of an audio output stream. | 594 // Notification of volume property of an audio output stream. |
| 592 void OnAudioStreamVolume(int stream_id, double left, double right); | 595 void OnAudioStreamVolume(int stream_id, double left, double right); |
| 593 | 596 |
| 594 void OnHandleExtensionMessage(const std::string& message, int channel_id); | 597 void OnHandleExtensionMessage(const std::string& message, int channel_id); |
| 595 | 598 |
| 599 // Sends the selection text to the browser. |
| 600 void OnRequestSelectionText(); |
| 601 |
| 596 // Prints the page listed in |params|. | 602 // Prints the page listed in |params|. |
| 597 void PrintPage(const ViewMsg_PrintPage_Params& params, | 603 void PrintPage(const ViewMsg_PrintPage_Params& params, |
| 598 const gfx::Size& canvas_size, | 604 const gfx::Size& canvas_size, |
| 599 WebFrame* frame); | 605 WebFrame* frame); |
| 600 | 606 |
| 601 // Prints all the pages listed in |params|. | 607 // Prints all the pages listed in |params|. |
| 602 void PrintPages(const ViewMsg_PrintPages_Params& params, WebFrame* frame); | 608 void PrintPages(const ViewMsg_PrintPages_Params& params, WebFrame* frame); |
| 603 | 609 |
| 604 // Attempt to upload the file that we are trying to process if any. | 610 // Attempt to upload the file that we are trying to process if any. |
| 605 // Reset the pending file upload data if the form was successfully | 611 // Reset the pending file upload data if the form was successfully |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 // browser process with every little thing that changes. This normally doesn't | 814 // browser process with every little thing that changes. This normally doesn't |
| 809 // change but is overridden by tests. | 815 // change but is overridden by tests. |
| 810 int delay_seconds_for_form_state_sync_; | 816 int delay_seconds_for_form_state_sync_; |
| 811 | 817 |
| 812 // A set of audio renderers registered to use IPC for audio output. | 818 // A set of audio renderers registered to use IPC for audio output. |
| 813 IDMap<AudioRendererImpl> audio_renderers_; | 819 IDMap<AudioRendererImpl> audio_renderers_; |
| 814 | 820 |
| 815 // Maps pending callback IDs to their frames. | 821 // Maps pending callback IDs to their frames. |
| 816 IDMap<WebFrame> pending_extension_callbacks_; | 822 IDMap<WebFrame> pending_extension_callbacks_; |
| 817 | 823 |
| 824 // The currently selected text. This is currently only updated on Linux, where |
| 825 // it's for the selection clipboard. |
| 826 std::string selection_text_; |
| 827 |
| 818 DISALLOW_COPY_AND_ASSIGN(RenderView); | 828 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 819 }; | 829 }; |
| 820 | 830 |
| 821 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 831 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |