Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: content/public/renderer/render_view.h

Issue 689163002: Clean up the page state saving mechanism. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixeds Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_PUBLIC_RENDERER_RENDER_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 const gfx::Point& point) const = 0; 86 const gfx::Point& point) const = 0;
87 87
88 // Returns true if we should display scrollbars for the given view size and 88 // Returns true if we should display scrollbars for the given view size and
89 // false if the scrollbars should be hidden. 89 // false if the scrollbars should be hidden.
90 virtual bool ShouldDisplayScrollbars(int width, int height) const = 0; 90 virtual bool ShouldDisplayScrollbars(int width, int height) const = 0;
91 91
92 // Bitwise-ORed set of extra bindings that have been enabled. See 92 // Bitwise-ORed set of extra bindings that have been enabled. See
93 // BindingsPolicy for details. 93 // BindingsPolicy for details.
94 virtual int GetEnabledBindings() const = 0; 94 virtual int GetEnabledBindings() const = 0;
95 95
96 // Whether content state (such as form state, scroll position and page 96 // Whether the page state (such as form state, scroll position and page
97 // contents) should be sent to the browser immediately. This is normally 97 // contents) should be sent to the browser immediately. This is normally
98 // false, but set to true by some tests. 98 // false, but set to true by some tests.
99 virtual bool GetContentStateImmediately() const = 0; 99 virtual bool IsPageStateSentImmediately() const = 0;
100 100
101 // Returns the current visibility of the WebView. 101 // Returns the current visibility of the WebView.
102 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; 102 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0;
103 103
104 // Used by plugins that load data in this RenderView to update the loading 104 // Used by plugins that load data in this RenderView to update the loading
105 // notifications. 105 // notifications.
106 virtual void DidStartLoading() = 0; 106 virtual void DidStartLoading() = 0;
107 virtual void DidStopLoading() = 0; 107 virtual void DidStopLoading() = 0;
108 108
109 // Notifies the renderer that a paint is to be generated for the size 109 // Notifies the renderer that a paint is to be generated for the size
(...skipping 22 matching lines...) Expand all
132 132
133 private: 133 private:
134 // This interface should only be implemented inside content. 134 // This interface should only be implemented inside content.
135 friend class RenderViewImpl; 135 friend class RenderViewImpl;
136 RenderView() {} 136 RenderView() {}
137 }; 137 };
138 138
139 } // namespace content 139 } // namespace content
140 140
141 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 141 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_render_view_observer.cc ('k') | content/public/test/layouttest_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698