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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 bool Send(IPC::Message* message) override; | 365 bool Send(IPC::Message* message) override; |
366 RenderFrameImpl* GetMainRenderFrame() override; | 366 RenderFrameImpl* GetMainRenderFrame() override; |
367 int GetRoutingID() const override; | 367 int GetRoutingID() const override; |
368 gfx::Size GetSize() const override; | 368 gfx::Size GetSize() const override; |
369 float GetDeviceScaleFactor() const override; | 369 float GetDeviceScaleFactor() const override; |
370 WebPreferences& GetWebkitPreferences() override; | 370 WebPreferences& GetWebkitPreferences() override; |
371 void SetWebkitPreferences(const WebPreferences& preferences) override; | 371 void SetWebkitPreferences(const WebPreferences& preferences) override; |
372 blink::WebView* GetWebView() override; | 372 blink::WebView* GetWebView() override; |
373 blink::WebFrameWidget* GetWebFrameWidget() override; | 373 blink::WebFrameWidget* GetWebFrameWidget() override; |
374 bool ShouldDisplayScrollbars(int width, int height) const override; | 374 bool ShouldDisplayScrollbars(int width, int height) const override; |
375 int GetEnabledBindings() const override; | |
376 bool GetContentStateImmediately() const override; | 375 bool GetContentStateImmediately() const override; |
377 void Repaint(const gfx::Size& size) override; | 376 void Repaint(const gfx::Size& size) override; |
378 void SetEditCommandForNextKeyEvent(const std::string& name, | 377 void SetEditCommandForNextKeyEvent(const std::string& name, |
379 const std::string& value) override; | 378 const std::string& value) override; |
380 void ClearEditCommands() override; | 379 void ClearEditCommands() override; |
381 const std::string& GetAcceptLanguages() const override; | 380 const std::string& GetAcceptLanguages() const override; |
382 #if defined(OS_ANDROID) | 381 #if defined(OS_ANDROID) |
383 void UpdateBrowserControlsState(BrowserControlsState constraints, | 382 void UpdateBrowserControlsState(BrowserControlsState constraints, |
384 BrowserControlsState current, | 383 BrowserControlsState current, |
385 bool animate) override; | 384 bool animate) override; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 blink::WebView* web_view, | 517 blink::WebView* web_view, |
519 CompositorDependencies* compositor_deps); | 518 CompositorDependencies* compositor_deps); |
520 | 519 |
521 // IPC message handlers ------------------------------------------------------ | 520 // IPC message handlers ------------------------------------------------------ |
522 // | 521 // |
523 // The documentation for these functions should be in | 522 // The documentation for these functions should be in |
524 // content/common/*_messages.h for the message that the function is handling. | 523 // content/common/*_messages.h for the message that the function is handling. |
525 void OnExecuteEditCommand(const std::string& name, const std::string& value); | 524 void OnExecuteEditCommand(const std::string& name, const std::string& value); |
526 void OnMoveCaret(const gfx::Point& point); | 525 void OnMoveCaret(const gfx::Point& point); |
527 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); | 526 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); |
528 void OnAllowBindings(int enabled_bindings_flags); | |
529 void OnAllowScriptToClose(bool script_can_close); | 527 void OnAllowScriptToClose(bool script_can_close); |
530 void OnCancelDownload(int32_t download_id); | 528 void OnCancelDownload(int32_t download_id); |
531 void OnClosePage(); | 529 void OnClosePage(); |
532 void OnClose(); | 530 void OnClose(); |
533 | 531 |
534 void OnShowContextMenu(ui::MenuSourceType source_type, | 532 void OnShowContextMenu(ui::MenuSourceType source_type, |
535 const gfx::Point& location); | 533 const gfx::Point& location); |
536 void OnDeterminePageLanguage(); | 534 void OnDeterminePageLanguage(); |
537 void OnDisableScrollbarsForSmallWindows( | 535 void OnDisableScrollbarsForSmallWindows( |
538 const gfx::Size& disable_scrollbars_size_limit); | 536 const gfx::Size& disable_scrollbars_size_limit); |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 // use the Observer interface to filter IPC messages and receive frame change | 841 // use the Observer interface to filter IPC messages and receive frame change |
844 // notifications. | 842 // notifications. |
845 // --------------------------------------------------------------------------- | 843 // --------------------------------------------------------------------------- |
846 | 844 |
847 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 845 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
848 }; | 846 }; |
849 | 847 |
850 } // namespace content | 848 } // namespace content |
851 | 849 |
852 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 850 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |