| 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 int32 CreateAudioStream(AudioRendererImpl* renderer, | 352 int32 CreateAudioStream(AudioRendererImpl* renderer, |
| 353 AudioManager::Format format, int channels, | 353 AudioManager::Format format, int channels, |
| 354 int sample_rate, int bits_per_sample, | 354 int sample_rate, int bits_per_sample, |
| 355 size_t packet_size); | 355 size_t packet_size); |
| 356 void StartAudioStream(int stream_id); | 356 void StartAudioStream(int stream_id); |
| 357 void CloseAudioStream(int stream_id); | 357 void CloseAudioStream(int stream_id); |
| 358 void NotifyAudioPacketReady(int stream_id); | 358 void NotifyAudioPacketReady(int stream_id); |
| 359 void GetAudioVolume(int stream_id); | 359 void GetAudioVolume(int stream_id); |
| 360 void SetAudioVolume(int stream_id, double left, double right); | 360 void SetAudioVolume(int stream_id, double left, double right); |
| 361 | 361 |
| 362 protected: |
| 363 // RenderWidget override. |
| 364 virtual void OnResize(const gfx::Size& new_size, |
| 365 const gfx::Rect& resizer_rect); |
| 366 |
| 362 private: | 367 private: |
| 363 FRIEND_TEST(RenderViewTest, OnLoadAlternateHTMLText); | 368 FRIEND_TEST(RenderViewTest, OnLoadAlternateHTMLText); |
| 364 FRIEND_TEST(RenderViewTest, OnNavStateChanged); | 369 FRIEND_TEST(RenderViewTest, OnNavStateChanged); |
| 365 FRIEND_TEST(RenderViewTest, OnImeStateChanged); | 370 FRIEND_TEST(RenderViewTest, OnImeStateChanged); |
| 366 | 371 |
| 367 explicit RenderView(RenderThreadBase* render_thread); | 372 explicit RenderView(RenderThreadBase* render_thread); |
| 368 | 373 |
| 369 // Initializes this view with the given parent and ID. The |routing_id| can be | 374 // Initializes this view with the given parent and ID. The |routing_id| can be |
| 370 // set to 'MSG_ROUTING_NONE' if the true ID is not yet known. In this case, | 375 // set to 'MSG_ROUTING_NONE' if the true ID is not yet known. In this case, |
| 371 // CompleteInit must be called later with the true ID. | 376 // CompleteInit must be called later with the true ID. |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 void OnDragSourceSystemDragEnded(); | 506 void OnDragSourceSystemDragEnded(); |
| 502 void OnInstallMissingPlugin(); | 507 void OnInstallMissingPlugin(); |
| 503 void OnFileChooserResponse(const std::vector<std::wstring>& file_names); | 508 void OnFileChooserResponse(const std::vector<std::wstring>& file_names); |
| 504 void OnEnableViewSourceMode(); | 509 void OnEnableViewSourceMode(); |
| 505 void OnUpdateBackForwardListCount(int back_list_count, | 510 void OnUpdateBackForwardListCount(int back_list_count, |
| 506 int forward_list_count); | 511 int forward_list_count); |
| 507 void OnGetAccessibilityInfo(const AccessibilityInParams& in_params, | 512 void OnGetAccessibilityInfo(const AccessibilityInParams& in_params, |
| 508 AccessibilityOutParams* out_params); | 513 AccessibilityOutParams* out_params); |
| 509 void OnClearAccessibilityInfo(int iaccessible_id, bool clear_all); | 514 void OnClearAccessibilityInfo(int iaccessible_id, bool clear_all); |
| 510 | 515 |
| 516 void OnMoveOrResizeStarted(); |
| 517 |
| 511 // Checks if the RenderView should close, runs the beforeunload handler and | 518 // Checks if the RenderView should close, runs the beforeunload handler and |
| 512 // sends ViewMsg_ShouldClose to the browser. | 519 // sends ViewMsg_ShouldClose to the browser. |
| 513 void OnMsgShouldClose(); | 520 void OnMsgShouldClose(); |
| 514 | 521 |
| 515 // Runs the onunload handler and closes the page, replying with ClosePage_ACK | 522 // Runs the onunload handler and closes the page, replying with ClosePage_ACK |
| 516 // (with the given RPH and request IDs, to help track the request). | 523 // (with the given RPH and request IDs, to help track the request). |
| 517 void OnClosePage(int new_render_process_host_id, int new_request_id); | 524 void OnClosePage(int new_render_process_host_id, int new_request_id); |
| 518 | 525 |
| 519 // Notification about ui theme changes. | 526 // Notification about ui theme changes. |
| 520 void OnThemeChanged(); | 527 void OnThemeChanged(); |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 // change but is overridden by tests. | 791 // change but is overridden by tests. |
| 785 int delay_seconds_for_form_state_sync_; | 792 int delay_seconds_for_form_state_sync_; |
| 786 | 793 |
| 787 // A set of audio renderers registered to use IPC for audio output. | 794 // A set of audio renderers registered to use IPC for audio output. |
| 788 IDMap<AudioRendererImpl> audio_renderers_; | 795 IDMap<AudioRendererImpl> audio_renderers_; |
| 789 | 796 |
| 790 DISALLOW_COPY_AND_ASSIGN(RenderView); | 797 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 791 }; | 798 }; |
| 792 | 799 |
| 793 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 800 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |