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

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

Issue 513723003: Add pixel readback to page popup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Created 6 years, 3 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 int selectionStart, int selectionEnd) OVERRIDE FINAL; 79 int selectionStart, int selectionEnd) OVERRIDE FINAL;
80 virtual bool confirmComposition() OVERRIDE FINAL; 80 virtual bool confirmComposition() OVERRIDE FINAL;
81 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior ) OVERRIDE FINAL; 81 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior ) OVERRIDE FINAL;
82 virtual bool confirmComposition(const WebString& text) OVERRIDE FINAL; 82 virtual bool confirmComposition(const WebString& text) OVERRIDE FINAL;
83 virtual bool compositionRange(size_t* location, size_t* length) OVERRIDE FIN AL; 83 virtual bool compositionRange(size_t* location, size_t* length) OVERRIDE FIN AL;
84 virtual bool caretOrSelectionRange(size_t* location, size_t* length) OVERRID E FINAL; 84 virtual bool caretOrSelectionRange(size_t* location, size_t* length) OVERRID E FINAL;
85 virtual void setTextDirection(WebTextDirection) OVERRIDE FINAL; 85 virtual void setTextDirection(WebTextDirection) OVERRIDE FINAL;
86 virtual bool isAcceleratedCompositingActive() const OVERRIDE FINAL { return false; } 86 virtual bool isAcceleratedCompositingActive() const OVERRIDE FINAL { return false; }
87 virtual bool isPopupMenu() const OVERRIDE FINAL { return true; } 87 virtual bool isPopupMenu() const OVERRIDE FINAL { return true; }
88 virtual void willCloseLayerTreeView() OVERRIDE FINAL; 88 virtual void willCloseLayerTreeView() OVERRIDE FINAL;
89 virtual WebWidgetClient* client() const OVERRIDE FINAL { return m_client; }
89 90
90 // WebContentLayerClient 91 // WebContentLayerClient
91 virtual void paintContents(WebCanvas*, const WebRect& clip, bool canPaintLCD Test, WebFloatRect& opaque, 92 virtual void paintContents(WebCanvas*, const WebRect& clip, bool canPaintLCD Test, WebFloatRect& opaque,
92 WebContentLayerClient::GraphicsContextStatus = GraphicsContextEnabled) O VERRIDE FINAL; 93 WebContentLayerClient::GraphicsContextStatus = GraphicsContextEnabled) O VERRIDE FINAL;
93 94
94 // WebPopupMenuImpl 95 // WebPopupMenuImpl
95 void initialize(FramelessScrollView* widget, const WebRect& bounds); 96 void initialize(FramelessScrollView* widget, const WebRect& bounds);
96 97
97 WebWidgetClient* client() { return m_client; }
98
99 void handleMouseMove(const WebMouseEvent&); 98 void handleMouseMove(const WebMouseEvent&);
100 void handleMouseLeave(const WebMouseEvent&); 99 void handleMouseLeave(const WebMouseEvent&);
101 void handleMouseDown(const WebMouseEvent&); 100 void handleMouseDown(const WebMouseEvent&);
102 void handleMouseUp(const WebMouseEvent&); 101 void handleMouseUp(const WebMouseEvent&);
103 void handleMouseDoubleClick(const WebMouseEvent&); 102 void handleMouseDoubleClick(const WebMouseEvent&);
104 void handleMouseWheel(const WebMouseWheelEvent&); 103 void handleMouseWheel(const WebMouseWheelEvent&);
105 bool handleGestureEvent(const WebGestureEvent&); 104 bool handleGestureEvent(const WebGestureEvent&);
106 bool handleTouchEvent(const WebTouchEvent&); 105 bool handleTouchEvent(const WebTouchEvent&);
107 bool handleKeyEvent(const WebKeyboardEvent&); 106 bool handleKeyEvent(const WebKeyboardEvent&);
108 107
(...skipping 28 matching lines...) Expand all
137 }; 136 };
138 137
139 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebWidget, widget, widget->isPopupMenu(), wi dget.isPopupMenu()); 138 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebWidget, widget, widget->isPopupMenu(), wi dget.isPopupMenu());
140 // WebPopupMenuImpl is the only implementation of FramelessScrollViewClient, so 139 // WebPopupMenuImpl is the only implementation of FramelessScrollViewClient, so
141 // no need for further checking. 140 // no need for further checking.
142 DEFINE_TYPE_CASTS(WebPopupMenuImpl, FramelessScrollViewClient, client, true, tru e); 141 DEFINE_TYPE_CASTS(WebPopupMenuImpl, FramelessScrollViewClient, client, true, tru e);
143 142
144 } // namespace blink 143 } // namespace blink
145 144
146 #endif 145 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698