| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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" |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 int32 CreateAudioStream(AudioRendererImpl* renderer, | 378 int32 CreateAudioStream(AudioRendererImpl* renderer, |
| 379 AudioManager::Format format, int channels, | 379 AudioManager::Format format, int channels, |
| 380 int sample_rate, int bits_per_sample, | 380 int sample_rate, int bits_per_sample, |
| 381 size_t packet_size); | 381 size_t packet_size); |
| 382 void StartAudioStream(int stream_id); | 382 void StartAudioStream(int stream_id); |
| 383 void CloseAudioStream(int stream_id); | 383 void CloseAudioStream(int stream_id); |
| 384 void NotifyAudioPacketReady(int stream_id, size_t size); | 384 void NotifyAudioPacketReady(int stream_id, size_t size); |
| 385 void GetAudioVolume(int stream_id); | 385 void GetAudioVolume(int stream_id); |
| 386 void SetAudioVolume(int stream_id, double left, double right); | 386 void SetAudioVolume(int stream_id, double left, double right); |
| 387 | 387 |
| 388 void OnClearFocusedNode(); |
| 389 |
| 388 void SendExtensionRequest(const std::string& name, const std::string& args, | 390 void SendExtensionRequest(const std::string& name, const std::string& args, |
| 389 int callback_id, WebFrame* web_frame); | 391 int callback_id, WebFrame* web_frame); |
| 390 void OnExtensionResponse(int callback_id, const std::string& response); | 392 void OnExtensionResponse(int callback_id, const std::string& response); |
| 391 | 393 |
| 392 protected: | 394 protected: |
| 393 // RenderWidget override. | 395 // RenderWidget override. |
| 394 virtual void OnResize(const gfx::Size& new_size, | 396 virtual void OnResize(const gfx::Size& new_size, |
| 395 const gfx::Rect& resizer_rect); | 397 const gfx::Rect& resizer_rect); |
| 396 | 398 |
| 397 private: | 399 private: |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 IDMap<WebFrame> pending_extension_callbacks_; | 836 IDMap<WebFrame> pending_extension_callbacks_; |
| 835 | 837 |
| 836 // The currently selected text. This is currently only updated on Linux, where | 838 // The currently selected text. This is currently only updated on Linux, where |
| 837 // it's for the selection clipboard. | 839 // it's for the selection clipboard. |
| 838 std::string selection_text_; | 840 std::string selection_text_; |
| 839 | 841 |
| 840 DISALLOW_COPY_AND_ASSIGN(RenderView); | 842 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 841 }; | 843 }; |
| 842 | 844 |
| 843 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 845 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |