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

Side by Side Diff: Source/core/page/ChromeClient.h

Issue 197533013: CompositingReasonFinder should use a virtual function instead of a nest of branches (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing file Created 6 years, 9 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 | « no previous file | Source/core/rendering/RenderHTMLCanvas.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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 11 matching lines...) Expand all
22 #ifndef ChromeClient_h 22 #ifndef ChromeClient_h
23 #define ChromeClient_h 23 #define ChromeClient_h
24 24
25 #include "core/accessibility/AXObjectCache.h" 25 #include "core/accessibility/AXObjectCache.h"
26 #include "core/inspector/ConsoleAPITypes.h" 26 #include "core/inspector/ConsoleAPITypes.h"
27 #include "core/loader/FrameLoader.h" 27 #include "core/loader/FrameLoader.h"
28 #include "core/loader/NavigationPolicy.h" 28 #include "core/loader/NavigationPolicy.h"
29 #include "core/frame/ConsoleTypes.h" 29 #include "core/frame/ConsoleTypes.h"
30 #include "core/page/FocusType.h" 30 #include "core/page/FocusType.h"
31 #include "core/rendering/RenderEmbeddedObject.h" 31 #include "core/rendering/RenderEmbeddedObject.h"
32 #include "core/rendering/compositing/CompositingTriggers.h"
32 #include "core/rendering/style/RenderStyleConstants.h" 33 #include "core/rendering/style/RenderStyleConstants.h"
33 #include "platform/Cursor.h" 34 #include "platform/Cursor.h"
34 #include "platform/HostWindow.h" 35 #include "platform/HostWindow.h"
35 #include "platform/PopupMenu.h" 36 #include "platform/PopupMenu.h"
36 #include "platform/PopupMenuClient.h" 37 #include "platform/PopupMenuClient.h"
37 #include "platform/graphics/GraphicsContext.h" 38 #include "platform/graphics/GraphicsContext.h"
38 #include "platform/scroll/ScrollTypes.h" 39 #include "platform/scroll/ScrollTypes.h"
39 #include "wtf/Forward.h" 40 #include "wtf/Forward.h"
40 #include "wtf/PassOwnPtr.h" 41 #include "wtf/PassOwnPtr.h"
41 #include "wtf/Vector.h" 42 #include "wtf/Vector.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 186
186 // Asychronous request to enumerate all files in a directory chosen by the u ser. 187 // Asychronous request to enumerate all files in a directory chosen by the u ser.
187 virtual void enumerateChosenDirectory(FileChooser*) = 0; 188 virtual void enumerateChosenDirectory(FileChooser*) = 0;
188 189
189 // Allows ports to customize the type of graphics layers created by this pag e. 190 // Allows ports to customize the type of graphics layers created by this pag e.
190 virtual GraphicsLayerFactory* graphicsLayerFactory() const { return 0; } 191 virtual GraphicsLayerFactory* graphicsLayerFactory() const { return 0; }
191 192
192 // Pass 0 as the GraphicsLayer to detatch the root layer. 193 // Pass 0 as the GraphicsLayer to detatch the root layer.
193 virtual void attachRootGraphicsLayer(GraphicsLayer*) = 0; 194 virtual void attachRootGraphicsLayer(GraphicsLayer*) = 0;
194 195
195 enum CompositingTrigger {
196 ThreeDTransformTrigger = 1 << 0,
197 VideoTrigger = 1 << 1,
198 PluginTrigger = 1 << 2,
199 CanvasTrigger = 1 << 3,
200 AnimationTrigger = 1 << 4,
201 FilterTrigger = 1 << 5,
202 ScrollableInnerFrameTrigger = 1 << 6,
203 AllTriggers = 0xFFFFFFFF
204 };
205 typedef unsigned CompositingTriggerFlags;
206
207 // Returns a bitfield indicating conditions that can trigger the compositor. 196 // Returns a bitfield indicating conditions that can trigger the compositor.
208 virtual CompositingTriggerFlags allowedCompositingTriggers() const { return static_cast<CompositingTriggerFlags>(AllTriggers); } 197 virtual CompositingTriggerFlags allowedCompositingTriggers() const { return static_cast<CompositingTriggerFlags>(AllCompositingTriggers); }
209 198
210 virtual void enterFullScreenForElement(Element*) { } 199 virtual void enterFullScreenForElement(Element*) { }
211 virtual void exitFullScreenForElement(Element*) { } 200 virtual void exitFullScreenForElement(Element*) { }
212 201
213 virtual void needTouchEvents(bool) = 0; 202 virtual void needTouchEvents(bool) = 0;
214 203
215 virtual void setTouchAction(TouchAction) = 0; 204 virtual void setTouchAction(TouchAction) = 0;
216 205
217 // Checks if there is an opened popup, called by RenderMenuList::showPopup() . 206 // Checks if there is an opened popup, called by RenderMenuList::showPopup() .
218 virtual bool hasOpenedPopup() const = 0; 207 virtual bool hasOpenedPopup() const = 0;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 // Input mehtod editor related functions. 251 // Input mehtod editor related functions.
263 virtual void didCancelCompositionOnSelectionChange() { } 252 virtual void didCancelCompositionOnSelectionChange() { }
264 virtual void willSetInputMethodState() { } 253 virtual void willSetInputMethodState() { }
265 254
266 protected: 255 protected:
267 virtual ~ChromeClient() { } 256 virtual ~ChromeClient() { }
268 }; 257 };
269 258
270 } 259 }
271 #endif // ChromeClient_h 260 #endif // ChromeClient_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderHTMLCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698