| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 bool Send(IPC::Message* message) override; | 362 bool Send(IPC::Message* message) override; |
| 363 RenderFrameImpl* GetMainRenderFrame() override; | 363 RenderFrameImpl* GetMainRenderFrame() override; |
| 364 int GetRoutingID() const override; | 364 int GetRoutingID() const override; |
| 365 gfx::Size GetSize() const override; | 365 gfx::Size GetSize() const override; |
| 366 float GetDeviceScaleFactor() const override; | 366 float GetDeviceScaleFactor() const override; |
| 367 WebPreferences& GetWebkitPreferences() override; | 367 WebPreferences& GetWebkitPreferences() override; |
| 368 void SetWebkitPreferences(const WebPreferences& preferences) override; | 368 void SetWebkitPreferences(const WebPreferences& preferences) override; |
| 369 blink::WebView* GetWebView() override; | 369 blink::WebView* GetWebView() override; |
| 370 blink::WebFrameWidget* GetWebFrameWidget() override; | 370 blink::WebFrameWidget* GetWebFrameWidget() override; |
| 371 bool ShouldDisplayScrollbars(int width, int height) const override; | 371 bool ShouldDisplayScrollbars(int width, int height) const override; |
| 372 int GetEnabledBindings() const override; | |
| 373 bool GetContentStateImmediately() const override; | 372 bool GetContentStateImmediately() const override; |
| 374 void Repaint(const gfx::Size& size) override; | 373 void Repaint(const gfx::Size& size) override; |
| 375 void SetEditCommandForNextKeyEvent(const std::string& name, | 374 void SetEditCommandForNextKeyEvent(const std::string& name, |
| 376 const std::string& value) override; | 375 const std::string& value) override; |
| 377 void ClearEditCommands() override; | 376 void ClearEditCommands() override; |
| 378 const std::string& GetAcceptLanguages() const override; | 377 const std::string& GetAcceptLanguages() const override; |
| 379 #if defined(OS_ANDROID) | 378 #if defined(OS_ANDROID) |
| 380 void UpdateBrowserControlsState(BrowserControlsState constraints, | 379 void UpdateBrowserControlsState(BrowserControlsState constraints, |
| 381 BrowserControlsState current, | 380 BrowserControlsState current, |
| 382 bool animate) override; | 381 bool animate) override; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 blink::WebView* web_view, | 516 blink::WebView* web_view, |
| 518 CompositorDependencies* compositor_deps); | 517 CompositorDependencies* compositor_deps); |
| 519 | 518 |
| 520 // IPC message handlers ------------------------------------------------------ | 519 // IPC message handlers ------------------------------------------------------ |
| 521 // | 520 // |
| 522 // The documentation for these functions should be in | 521 // The documentation for these functions should be in |
| 523 // content/common/*_messages.h for the message that the function is handling. | 522 // content/common/*_messages.h for the message that the function is handling. |
| 524 void OnExecuteEditCommand(const std::string& name, const std::string& value); | 523 void OnExecuteEditCommand(const std::string& name, const std::string& value); |
| 525 void OnMoveCaret(const gfx::Point& point); | 524 void OnMoveCaret(const gfx::Point& point); |
| 526 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); | 525 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); |
| 527 void OnAllowBindings(int enabled_bindings_flags); | |
| 528 void OnAllowScriptToClose(bool script_can_close); | 526 void OnAllowScriptToClose(bool script_can_close); |
| 529 void OnCancelDownload(int32_t download_id); | 527 void OnCancelDownload(int32_t download_id); |
| 530 void OnClosePage(); | 528 void OnClosePage(); |
| 531 void OnClose(); | 529 void OnClose(); |
| 532 | 530 |
| 533 void OnShowContextMenu(ui::MenuSourceType source_type, | 531 void OnShowContextMenu(ui::MenuSourceType source_type, |
| 534 const gfx::Point& location); | 532 const gfx::Point& location); |
| 535 void OnDeterminePageLanguage(); | 533 void OnDeterminePageLanguage(); |
| 536 void OnDisableScrollbarsForSmallWindows( | 534 void OnDisableScrollbarsForSmallWindows( |
| 537 const gfx::Size& disable_scrollbars_size_limit); | 535 const gfx::Size& disable_scrollbars_size_limit); |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 842 // --------------------------------------------------------------------------- | 840 // --------------------------------------------------------------------------- |
| 843 | 841 |
| 844 base::WeakPtrFactory<RenderViewImpl> weak_ptr_factory_; | 842 base::WeakPtrFactory<RenderViewImpl> weak_ptr_factory_; |
| 845 | 843 |
| 846 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 844 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 847 }; | 845 }; |
| 848 | 846 |
| 849 } // namespace content | 847 } // namespace content |
| 850 | 848 |
| 851 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 849 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |