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

Unified Diff: components/dom_distiller/core/theme_list.h

Issue 340403004: Java wrapper for DistilledPagePrefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: spacing, fixed theme_list Created 6 years, 5 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
Index: components/dom_distiller/core/theme_list.h
diff --git a/components/dom_distiller/core/theme_list.h b/components/dom_distiller/core/theme_list.h
new file mode 100644
index 0000000000000000000000000000000000000000..4f0ebad2578fb45ec77493be8ba60db99d78b174
--- /dev/null
+++ b/components/dom_distiller/core/theme_list.h
@@ -0,0 +1,15 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file intentionally does not have header guards, it's included
+// inside a macro to generate enum values.
+
+#ifndef DEFINE_THEME
+#error "DEFINE_THEME should be defined before including this file"
+#endif
+// First argument represents native enum, second argument represents Java enum,
nyquist 2014/07/11 00:19:02 This comment should be updated.
sunangel 2014/07/11 15:47:48 Done.
+// third argument represents value corresponding to the names in the enum
+DEFINE_THEME(LIGHT, 0)
nyquist 2014/07/11 00:19:02 Please update components/dom_distiller/core/distil
sunangel 2014/07/11 15:47:48 Done.
+DEFINE_THEME(DARK, 1)
+DEFINE_THEME(SEPIA, 2)
nyquist 2014/07/11 00:19:02 I think this is missing THEME_COUNT
sunangel 2014/07/11 15:47:48 Done.

Powered by Google App Engine
This is Rietveld 408576698