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

Side by Side Diff: ui/views/controls/webview/webview.h

Issue 1488653002: Fix scroll restoration when exiting fullscreen mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Accidentally made will_cause_resize always false in previous cleanup. Fixed Created 4 years, 10 months 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 UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ 5 #ifndef UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_
6 #define UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ 6 #define UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 bool EmbedsFullscreenWidget() const override; 126 bool EmbedsFullscreenWidget() const override;
127 127
128 // Overridden from content::WebContentsObserver: 128 // Overridden from content::WebContentsObserver:
129 void RenderViewReady() override; 129 void RenderViewReady() override;
130 void RenderViewDeleted(content::RenderViewHost* render_view_host) override; 130 void RenderViewDeleted(content::RenderViewHost* render_view_host) override;
131 void RenderViewHostChanged(content::RenderViewHost* old_host, 131 void RenderViewHostChanged(content::RenderViewHost* old_host,
132 content::RenderViewHost* new_host) override; 132 content::RenderViewHost* new_host) override;
133 void WebContentsDestroyed() override; 133 void WebContentsDestroyed() override;
134 void DidShowFullscreenWidget(int routing_id) override; 134 void DidShowFullscreenWidget(int routing_id) override;
135 void DidDestroyFullscreenWidget(int routing_id) override; 135 void DidDestroyFullscreenWidget(int routing_id) override;
136 void DidToggleFullscreenModeForTab(bool entered_fullscreen) override; 136 void DidToggleFullscreenModeForTab(bool entered_fullscreen,
137 bool will_cause_resize) override;
137 void DidAttachInterstitialPage() override; 138 void DidAttachInterstitialPage() override;
138 void DidDetachInterstitialPage() override; 139 void DidDetachInterstitialPage() override;
139 // Workaround for MSVC++ linker bug/feature that requires 140 // Workaround for MSVC++ linker bug/feature that requires
140 // instantiation of the inline IPC::Listener methods in all translation units. 141 // instantiation of the inline IPC::Listener methods in all translation units.
141 void OnChannelConnected(int32_t peer_id) override {} 142 void OnChannelConnected(int32_t peer_id) override {}
142 void OnChannelError() override {} 143 void OnChannelError() override {}
143 void OnBadMessageReceived(const IPC::Message& message) override {} 144 void OnBadMessageReceived(const IPC::Message& message) override {}
144 void OnWebContentsFocused() override; 145 void OnWebContentsFocused() override;
145 146
146 private: 147 private:
(...skipping 26 matching lines...) Expand all
173 content::BrowserContext* browser_context_; 174 content::BrowserContext* browser_context_;
174 bool allow_accelerators_; 175 bool allow_accelerators_;
175 gfx::Size preferred_size_; 176 gfx::Size preferred_size_;
176 177
177 DISALLOW_COPY_AND_ASSIGN(WebView); 178 DISALLOW_COPY_AND_ASSIGN(WebView);
178 }; 179 };
179 180
180 } // namespace views 181 } // namespace views
181 182
182 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ 183 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FullscreenController.cpp ('k') | ui/views/controls/webview/webview.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698