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

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

Issue 8072011: Only allow to lock the mouse when the tab is in fullscreen mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make changes in response to review comments & sync. Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 virtual void HandleMouseUp() {} 366 virtual void HandleMouseUp() {}
367 virtual void HandleMouseActivate() {} 367 virtual void HandleMouseActivate() {}
368 368
369 // Called when a file selection is to be done. 369 // Called when a file selection is to be done.
370 virtual void RunFileChooser( 370 virtual void RunFileChooser(
371 RenderViewHost* render_view_host, 371 RenderViewHost* render_view_host,
372 const ViewHostMsg_RunFileChooser_Params& params) {} 372 const ViewHostMsg_RunFileChooser_Params& params) {}
373 373
374 // Notification that the page wants to go into or out of fullscreen mode. 374 // Notification that the page wants to go into or out of fullscreen mode.
375 virtual void ToggleFullscreenMode(bool enter_fullscreen) {} 375 virtual void ToggleFullscreenMode(bool enter_fullscreen) {}
376 virtual bool IsFullscreenForCurrentTab() const;
376 377
377 // The contents' preferred size changed. 378 // The contents' preferred size changed.
378 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} 379 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {}
379 380
380 // Notification message from HTML UI. 381 // Notification message from HTML UI.
381 virtual void WebUISend(RenderViewHost* render_view_host, 382 virtual void WebUISend(RenderViewHost* render_view_host,
382 const GURL& source_url, 383 const GURL& source_url,
383 const std::string& name, 384 const std::string& name,
384 const base::ListValue& args) {} 385 const base::ListValue& args) {}
385 protected: 386 protected:
386 virtual ~RenderViewHostDelegate() {} 387 virtual ~RenderViewHostDelegate() {}
387 }; 388 };
388 389
389 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 390 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host.cc ('k') | content/browser/renderer_host/render_view_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698