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

Side by Side Diff: Source/web/PageWidgetDelegate.h

Issue 474183002: Cleanup namespace usage in Source/web/*.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/web/PageScaleConstraintsSet.h ('k') | Source/web/PrerendererClientImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef PageWidgetDelegate_h 31 #ifndef PageWidgetDelegate_h
32 #define PageWidgetDelegate_h 32 #define PageWidgetDelegate_h
33 33
34 #include "public/platform/WebCanvas.h" 34 #include "public/platform/WebCanvas.h"
35 #include "public/web/WebWidget.h" 35 #include "public/web/WebWidget.h"
36 #include "wtf/OwnPtr.h" 36 #include "wtf/OwnPtr.h"
37 37
38 namespace blink { 38 namespace blink {
39
39 class LocalFrame; 40 class LocalFrame;
40 class Page; 41 class Page;
41 }
42
43 namespace blink {
44
45 class PageOverlayList; 42 class PageOverlayList;
46 class WebGestureEvent; 43 class WebGestureEvent;
47 class WebInputEvent; 44 class WebInputEvent;
48 class WebKeyboardEvent; 45 class WebKeyboardEvent;
49 class WebMouseEvent; 46 class WebMouseEvent;
50 class WebMouseWheelEvent; 47 class WebMouseWheelEvent;
51 class WebTouchEvent; 48 class WebTouchEvent;
52 49
53 class PageWidgetEventHandler { 50 class PageWidgetEventHandler {
54 public: 51 public:
55 virtual void handleMouseMove(blink::LocalFrame& mainFrame, const WebMouseEve nt&); 52 virtual void handleMouseMove(LocalFrame& mainFrame, const WebMouseEvent&);
56 virtual void handleMouseLeave(blink::LocalFrame& mainFrame, const WebMouseEv ent&); 53 virtual void handleMouseLeave(LocalFrame& mainFrame, const WebMouseEvent&);
57 virtual void handleMouseDown(blink::LocalFrame& mainFrame, const WebMouseEve nt&); 54 virtual void handleMouseDown(LocalFrame& mainFrame, const WebMouseEvent&);
58 virtual void handleMouseUp(blink::LocalFrame& mainFrame, const WebMouseEvent &); 55 virtual void handleMouseUp(LocalFrame& mainFrame, const WebMouseEvent&);
59 virtual bool handleMouseWheel(blink::LocalFrame& mainFrame, const WebMouseWh eelEvent&); 56 virtual bool handleMouseWheel(LocalFrame& mainFrame, const WebMouseWheelEven t&);
60 virtual bool handleKeyEvent(const WebKeyboardEvent&) = 0; 57 virtual bool handleKeyEvent(const WebKeyboardEvent&) = 0;
61 virtual bool handleCharEvent(const WebKeyboardEvent&) = 0; 58 virtual bool handleCharEvent(const WebKeyboardEvent&) = 0;
62 virtual bool handleGestureEvent(const WebGestureEvent&) = 0; 59 virtual bool handleGestureEvent(const WebGestureEvent&) = 0;
63 virtual bool handleTouchEvent(blink::LocalFrame& mainFrame, const WebTouchEv ent&); 60 virtual bool handleTouchEvent(LocalFrame& mainFrame, const WebTouchEvent&);
64 virtual ~PageWidgetEventHandler() { } 61 virtual ~PageWidgetEventHandler() { }
65 }; 62 };
66 63
67 64
68 // Common implementation of WebViewImpl and WebPagePopupImpl. 65 // Common implementation of WebViewImpl and WebPagePopupImpl.
69 class PageWidgetDelegate { 66 class PageWidgetDelegate {
70 public: 67 public:
71 enum CanvasBackground { 68 enum CanvasBackground {
72 Opaque, 69 Opaque,
73 Translucent, 70 Translucent,
74 }; 71 };
75 static void animate(blink::Page*, double monotonicFrameBeginTime); 72 static void animate(Page*, double monotonicFrameBeginTime);
76 static void layout(blink::Page*, blink::LocalFrame* rootFrame = 0); 73 static void layout(Page*, LocalFrame* rootFrame = 0);
77 static void paint(blink::Page*, PageOverlayList*, WebCanvas*, const WebRect& , CanvasBackground); 74 static void paint(Page*, PageOverlayList*, WebCanvas*, const WebRect&, Canva sBackground);
78 static bool handleInputEvent(blink::Page*, PageWidgetEventHandler&, const We bInputEvent&); 75 static bool handleInputEvent(Page*, PageWidgetEventHandler&, const WebInputE vent&);
79 76
80 private: 77 private:
81 PageWidgetDelegate() { } 78 PageWidgetDelegate() { }
82 }; 79 };
83 80
84 } 81 }
85 #endif 82 #endif
OLDNEW
« no previous file with comments | « Source/web/PageScaleConstraintsSet.h ('k') | Source/web/PrerendererClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698