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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 PageSerializationStatus status) OVERRIDE; | 573 PageSerializationStatus status) OVERRIDE; |
574 | 574 |
575 // content::RenderView implementation ---------------------------------------- | 575 // content::RenderView implementation ---------------------------------------- |
576 | 576 |
577 virtual bool Send(IPC::Message* message) OVERRIDE; | 577 virtual bool Send(IPC::Message* message) OVERRIDE; |
578 virtual int GetRoutingId() const OVERRIDE; | 578 virtual int GetRoutingId() const OVERRIDE; |
579 virtual int GetPageId() OVERRIDE; | 579 virtual int GetPageId() OVERRIDE; |
580 virtual gfx::Size GetSize() OVERRIDE; | 580 virtual gfx::Size GetSize() OVERRIDE; |
581 virtual gfx::NativeViewId GetHostWindow() OVERRIDE; | 581 virtual gfx::NativeViewId GetHostWindow() OVERRIDE; |
582 virtual WebPreferences& GetWebkitPreferences() OVERRIDE; | 582 virtual WebPreferences& GetWebkitPreferences() OVERRIDE; |
| 583 virtual int GetDefaultDeviceScaleFactor() const OVERRIDE; |
583 virtual WebKit::WebView* GetWebView() OVERRIDE; | 584 virtual WebKit::WebView* GetWebView() OVERRIDE; |
584 virtual WebKit::WebNode GetFocusedNode() const OVERRIDE; | 585 virtual WebKit::WebNode GetFocusedNode() const OVERRIDE; |
585 virtual WebKit::WebNode GetContextMenuNode() const OVERRIDE; | 586 virtual WebKit::WebNode GetContextMenuNode() const OVERRIDE; |
586 virtual bool IsEditableNode(const WebKit::WebNode& node) OVERRIDE; | 587 virtual bool IsEditableNode(const WebKit::WebNode& node) OVERRIDE; |
587 virtual WebKit::WebPlugin* CreatePlugin( | 588 virtual WebKit::WebPlugin* CreatePlugin( |
588 WebKit::WebFrame* frame, | 589 WebKit::WebFrame* frame, |
589 const webkit::WebPluginInfo& info, | 590 const webkit::WebPluginInfo& info, |
590 const WebKit::WebPluginParams& params) OVERRIDE; | 591 const WebKit::WebPluginParams& params) OVERRIDE; |
591 virtual void EvaluateScript(const string16& frame_xpath, | 592 virtual void EvaluateScript(const string16& frame_xpath, |
592 const string16& jscript, | 593 const string16& jscript, |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1005 // scroll bars on windows smaller than this size. Used for windows that the | 1006 // scroll bars on windows smaller than this size. Used for windows that the |
1006 // browser resizes to the size of the content, such as browser action popups. | 1007 // browser resizes to the size of the content, such as browser action popups. |
1007 // If a render view is set to the minimum size of its content, webkit may add | 1008 // If a render view is set to the minimum size of its content, webkit may add |
1008 // scroll bars. This makes sense for fixed sized windows, but it does not | 1009 // scroll bars. This makes sense for fixed sized windows, but it does not |
1009 // make sense when the size of the view was chosen to fit the content. | 1010 // make sense when the size of the view was chosen to fit the content. |
1010 // This setting ensures that no scroll bars are drawn. The size limit exists | 1011 // This setting ensures that no scroll bars are drawn. The size limit exists |
1011 // because if the view grows beyond a size known to the browser, scroll bars | 1012 // because if the view grows beyond a size known to the browser, scroll bars |
1012 // should be drawn. | 1013 // should be drawn. |
1013 gfx::Size disable_scrollbars_size_limit_; | 1014 gfx::Size disable_scrollbars_size_limit_; |
1014 | 1015 |
| 1016 int default_device_scale_factor_; |
| 1017 |
1015 // Loading state ------------------------------------------------------------- | 1018 // Loading state ------------------------------------------------------------- |
1016 | 1019 |
1017 // True if the top level frame is currently being loaded. | 1020 // True if the top level frame is currently being loaded. |
1018 bool is_loading_; | 1021 bool is_loading_; |
1019 | 1022 |
1020 // The gesture that initiated the current navigation. | 1023 // The gesture that initiated the current navigation. |
1021 NavigationGesture navigation_gesture_; | 1024 NavigationGesture navigation_gesture_; |
1022 | 1025 |
1023 // Used for popups. | 1026 // Used for popups. |
1024 bool opened_by_user_gesture_; | 1027 bool opened_by_user_gesture_; |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1278 // bunch of stuff, you should probably create a helper class and put your | 1281 // bunch of stuff, you should probably create a helper class and put your |
1279 // data and methods on that to avoid bloating RenderView more. You can | 1282 // data and methods on that to avoid bloating RenderView more. You can |
1280 // use the Observer interface to filter IPC messages and receive frame change | 1283 // use the Observer interface to filter IPC messages and receive frame change |
1281 // notifications. | 1284 // notifications. |
1282 // --------------------------------------------------------------------------- | 1285 // --------------------------------------------------------------------------- |
1283 | 1286 |
1284 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1287 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1285 }; | 1288 }; |
1286 | 1289 |
1287 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1290 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |