| 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 bool Send(IPC::Message* message) override; | 372 bool Send(IPC::Message* message) override; |
| 373 RenderFrameImpl* GetMainRenderFrame() override; | 373 RenderFrameImpl* GetMainRenderFrame() override; |
| 374 int GetRoutingID() const override; | 374 int GetRoutingID() const override; |
| 375 gfx::Size GetSize() const override; | 375 gfx::Size GetSize() const override; |
| 376 float GetDeviceScaleFactor() const override; | 376 float GetDeviceScaleFactor() const override; |
| 377 WebPreferences& GetWebkitPreferences() override; | 377 WebPreferences& GetWebkitPreferences() override; |
| 378 void SetWebkitPreferences(const WebPreferences& preferences) override; | 378 void SetWebkitPreferences(const WebPreferences& preferences) override; |
| 379 blink::WebView* GetWebView() override; | 379 blink::WebView* GetWebView() override; |
| 380 blink::WebFrameWidget* GetWebFrameWidget() override; | 380 blink::WebFrameWidget* GetWebFrameWidget() override; |
| 381 bool ShouldDisplayScrollbars(int width, int height) const override; | 381 bool ShouldDisplayScrollbars(int width, int height) const override; |
| 382 int GetEnabledBindings() const override; | |
| 383 bool GetContentStateImmediately() const override; | 382 bool GetContentStateImmediately() const override; |
| 384 void Repaint(const gfx::Size& size) override; | 383 void Repaint(const gfx::Size& size) override; |
| 385 void SetEditCommandForNextKeyEvent(const std::string& name, | 384 void SetEditCommandForNextKeyEvent(const std::string& name, |
| 386 const std::string& value) override; | 385 const std::string& value) override; |
| 387 void ClearEditCommands() override; | 386 void ClearEditCommands() override; |
| 388 const std::string& GetAcceptLanguages() const override; | 387 const std::string& GetAcceptLanguages() const override; |
| 389 #if defined(OS_ANDROID) | 388 #if defined(OS_ANDROID) |
| 390 void UpdateBrowserControlsState(BrowserControlsState constraints, | 389 void UpdateBrowserControlsState(BrowserControlsState constraints, |
| 391 BrowserControlsState current, | 390 BrowserControlsState current, |
| 392 bool animate) override; | 391 bool animate) override; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 blink::WebView* web_view, | 524 blink::WebView* web_view, |
| 526 CompositorDependencies* compositor_deps); | 525 CompositorDependencies* compositor_deps); |
| 527 | 526 |
| 528 // IPC message handlers ------------------------------------------------------ | 527 // IPC message handlers ------------------------------------------------------ |
| 529 // | 528 // |
| 530 // The documentation for these functions should be in | 529 // The documentation for these functions should be in |
| 531 // content/common/*_messages.h for the message that the function is handling. | 530 // content/common/*_messages.h for the message that the function is handling. |
| 532 void OnExecuteEditCommand(const std::string& name, const std::string& value); | 531 void OnExecuteEditCommand(const std::string& name, const std::string& value); |
| 533 void OnMoveCaret(const gfx::Point& point); | 532 void OnMoveCaret(const gfx::Point& point); |
| 534 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); | 533 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); |
| 535 void OnAllowBindings(int enabled_bindings_flags); | |
| 536 void OnAllowScriptToClose(bool script_can_close); | 534 void OnAllowScriptToClose(bool script_can_close); |
| 537 void OnCancelDownload(int32_t download_id); | 535 void OnCancelDownload(int32_t download_id); |
| 538 void OnClearFocusedElement(); | 536 void OnClearFocusedElement(); |
| 539 void OnClosePage(); | 537 void OnClosePage(); |
| 540 void OnClose(); | 538 void OnClose(); |
| 541 | 539 |
| 542 void OnShowContextMenu(ui::MenuSourceType source_type, | 540 void OnShowContextMenu(ui::MenuSourceType source_type, |
| 543 const gfx::Point& location); | 541 const gfx::Point& location); |
| 544 void OnDeterminePageLanguage(); | 542 void OnDeterminePageLanguage(); |
| 545 void OnDisableScrollbarsForSmallWindows( | 543 void OnDisableScrollbarsForSmallWindows( |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 // use the Observer interface to filter IPC messages and receive frame change | 850 // use the Observer interface to filter IPC messages and receive frame change |
| 853 // notifications. | 851 // notifications. |
| 854 // --------------------------------------------------------------------------- | 852 // --------------------------------------------------------------------------- |
| 855 | 853 |
| 856 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 854 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 857 }; | 855 }; |
| 858 | 856 |
| 859 } // namespace content | 857 } // namespace content |
| 860 | 858 |
| 861 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 859 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |