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

Side by Side Diff: content/renderer/render_widget.h

Issue 14999010: Allows fullscreen to be triggered with the key events used for scrolling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 virtual bool WillHandleGestureEvent(const WebKit::WebGestureEvent& event); 471 virtual bool WillHandleGestureEvent(const WebKit::WebGestureEvent& event);
472 472
473 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was 473 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was
474 // just handled. 474 // just handled.
475 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} 475 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {}
476 476
477 // Called by OnHandleInputEvent() to notify subclasses that a touch event was 477 // Called by OnHandleInputEvent() to notify subclasses that a touch event was
478 // just handled. 478 // just handled.
479 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} 479 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {}
480 480
481 // Called by OnHandleInputEvent() to conditionally scroll up/down the top
482 // controls.
483 virtual bool MaybeScrollTopControls(const WebKit::WebInputEvent* event);
484
481 // Check whether the WebWidget has any touch event handlers registered 485 // Check whether the WebWidget has any touch event handlers registered
482 // at the given point. 486 // at the given point.
483 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const; 487 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const;
484 488
485 // Check whether the WebWidget has any touch event handlers registered. 489 // Check whether the WebWidget has any touch event handlers registered.
486 virtual void hasTouchEventHandlers(bool has_handlers); 490 virtual void hasTouchEventHandlers(bool has_handlers);
487 491
488 // Creates a 3D context associated with this view. 492 // Creates a 3D context associated with this view.
489 WebGraphicsContext3DCommandBufferImpl* CreateGraphicsContext3D( 493 WebGraphicsContext3DCommandBufferImpl* CreateGraphicsContext3D(
490 const WebKit::WebGraphicsContext3D::Attributes& attributes); 494 const WebKit::WebGraphicsContext3D::Attributes& attributes);
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 bool is_threaded_compositing_enabled_; 698 bool is_threaded_compositing_enabled_;
695 699
696 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; 700 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_;
697 701
698 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 702 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
699 }; 703 };
700 704
701 } // namespace content 705 } // namespace content
702 706
703 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 707 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698