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

Unified Diff: Source/core/rendering/compositing/CompositingTriggers.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/compositing/CompositingReasonFinder.cpp ('k') | Source/web/ChromeClientImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/compositing/CompositingTriggers.h
diff --git a/Source/platform/PopupMenu.h b/Source/core/rendering/compositing/CompositingTriggers.h
similarity index 61%
copy from Source/platform/PopupMenu.h
copy to Source/core/rendering/compositing/CompositingTriggers.h
index f7f822ab33c0ce64d4591c204b33becbb408570c..1e12a819cf2d6a5bfb7af0a4c9f8e07275edf431 100644
--- a/Source/platform/PopupMenu.h
+++ b/Source/core/rendering/compositing/CompositingTriggers.h
@@ -1,5 +1,7 @@
/*
+ * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights reserved.
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ * Copyright (C) 2012 Samsung Electronics. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -15,31 +17,26 @@
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
- *
*/
-#ifndef PopupMenu_h
-#define PopupMenu_h
-
-#include "platform/PlatformExport.h"
-#include "wtf/RefCounted.h"
+#ifndef CompositingTriggers_h
+#define CompositingTriggers_h
namespace WebCore {
-class FloatQuad;
-class FrameView;
-class IntRect;
-class IntSize;
-
-class PopupMenu : public RefCounted<PopupMenu> {
-public:
- virtual ~PopupMenu() { }
- virtual void show(const FloatQuad& controlPosition, const IntSize& controlSize, int index) = 0;
- virtual void hide() = 0;
- virtual void updateFromElement() = 0;
- virtual void disconnectClient() = 0;
+enum CompositingTrigger {
+ ThreeDTransformTrigger = 1 << 0,
+ VideoTrigger = 1 << 1,
+ PluginTrigger = 1 << 2,
+ CanvasTrigger = 1 << 3,
+ AnimationTrigger = 1 << 4,
+ FilterTrigger = 1 << 5,
+ ScrollableInnerFrameTrigger = 1 << 6,
+ AllCompositingTriggers = 0xFFFFFFFF
};
+typedef unsigned CompositingTriggerFlags;
+
}
-#endif // PopupMenu_h
+#endif
« no previous file with comments | « Source/core/rendering/compositing/CompositingReasonFinder.cpp ('k') | Source/web/ChromeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698