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

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 1135693006: Fix X11DesktopHandler::ActivateWindow on Unity for known user gestures Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // warning shown to the user. 154 // warning shown to the user.
155 virtual void RendererResponsive(RenderViewHost* render_view_host) {} 155 virtual void RendererResponsive(RenderViewHost* render_view_host) {}
156 156
157 // Notification that the RenderViewHost's load state changed. 157 // Notification that the RenderViewHost's load state changed.
158 virtual void LoadStateChanged(const GURL& url, 158 virtual void LoadStateChanged(const GURL& url,
159 const net::LoadStateWithParam& load_state, 159 const net::LoadStateWithParam& load_state,
160 uint64 upload_position, 160 uint64 upload_position,
161 uint64 upload_size) {} 161 uint64 upload_size) {}
162 162
163 // The page wants the hosting window to activate/deactivate itself (it 163 // The page wants the hosting window to activate/deactivate itself (it
164 // called the JavaScript window.focus()/blur() method). 164 // called the JavaScript window.focus()/blur() method). Use the ForUserGesture
165 // variant if the JavaScript was running in response to a user gesture.
165 virtual void Activate() {} 166 virtual void Activate() {}
167 virtual void ActivateForUserGesture();
166 virtual void Deactivate() {} 168 virtual void Deactivate() {}
167 169
168 // Notification that the view has lost capture. 170 // Notification that the view has lost capture.
169 virtual void LostCapture() {} 171 virtual void LostCapture() {}
170 172
171 // Called when a file selection is to be done. 173 // Called when a file selection is to be done.
172 virtual void RunFileChooser( 174 virtual void RunFileChooser(
173 RenderViewHost* render_view_host, 175 RenderViewHost* render_view_host,
174 const FileChooserParams& params) {} 176 const FileChooserParams& params) {}
175 177
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 virtual void SetIsVirtualKeyboardRequested(bool requested) {} 273 virtual void SetIsVirtualKeyboardRequested(bool requested) {}
272 virtual bool IsVirtualKeyboardRequested(); 274 virtual bool IsVirtualKeyboardRequested();
273 275
274 protected: 276 protected:
275 virtual ~RenderViewHostDelegate() {} 277 virtual ~RenderViewHostDelegate() {}
276 }; 278 };
277 279
278 } // namespace content 280 } // namespace content
279 281
280 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 282 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698