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

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

Issue 10443045: Silent mouse lock after unlock by target (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 320
321 // The contents' preferred size changed. 321 // The contents' preferred size changed.
322 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} 322 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {}
323 323
324 // The contents auto-resized and the container should match it. 324 // The contents auto-resized and the container should match it.
325 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} 325 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {}
326 326
327 // Requests to lock the mouse. Once the request is approved or rejected, 327 // Requests to lock the mouse. Once the request is approved or rejected,
328 // GotResponseToLockMouseRequest() will be called on the requesting render 328 // GotResponseToLockMouseRequest() will be called on the requesting render
329 // view host. 329 // view host.
330 virtual void RequestToLockMouse(bool user_gesture) {} 330 virtual void RequestToLockMouse(bool user_gesture,
331 bool after_unlocked_by_target) {
jochen (gone - plz use gerrit) 2012/05/25 21:53:46 align arguments, here and everywhere else
dmurph 2012/05/30 00:17:51 ok
332 }
331 333
332 // Notification that the view has lost the mouse lock. 334 // Notification that the view has lost the mouse lock.
333 virtual void LostMouseLock() {} 335 virtual void LostMouseLock() {}
334 336
335 // The page is trying to open a new page (e.g. a popup window). The window 337 // The page is trying to open a new page (e.g. a popup window). The window
336 // should be created associated with the given route, but it should not be 338 // should be created associated with the given route, but it should not be
337 // shown yet. That should happen in response to ShowCreatedWindow. 339 // shown yet. That should happen in response to ShowCreatedWindow.
338 // |params.window_container_type| describes the type of RenderViewHost 340 // |params.window_container_type| describes the type of RenderViewHost
339 // container that is requested -- in particular, the window.open call may 341 // container that is requested -- in particular, the window.open call may
340 // have specified 'background' and 'persistent' in the feature string. 342 // have specified 'background' and 'persistent' in the feature string.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 // provided in the supplied params. 383 // provided in the supplied params.
382 virtual void ShowContextMenu(const content::ContextMenuParams& params) {} 384 virtual void ShowContextMenu(const content::ContextMenuParams& params) {}
383 385
384 protected: 386 protected:
385 virtual ~RenderViewHostDelegate() {} 387 virtual ~RenderViewHostDelegate() {}
386 }; 388 };
387 389
388 } // namespace content 390 } // namespace content
389 391
390 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 392 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698