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

Unified Diff: ui/ui_controls/ui_controls_type_delegate.h

Issue 11419013: Add desktop vs. ash context to ui_controls Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 8 years, 1 month 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: ui/ui_controls/ui_controls_type_delegate.h
diff --git a/ui/ui_controls/ui_controls_type_delegate.h b/ui/ui_controls/ui_controls_type_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..00fd3d3ab8180e459467af4601f85146d25f6477
--- /dev/null
+++ b/ui/ui_controls/ui_controls_type_delegate.h
@@ -0,0 +1,34 @@
+// Copyright 2012 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.
+
+#ifndef UI_UI_CONTROLS_UI_CONTROLS_TYPE_DELEGATE_H_
+#define UI_UI_CONTROLS_UI_CONTROLS_TYPE_DELEGATE_H_
+
+#include "ui/base/ui_export.h"
+#include "ui/gfx/native_widget_types.h"
+
+namespace ui_controls {
+
+enum UI_EXPORT UIControlsType {
+ UI_CONTROLS_TYPE_NATIVE = 0,
+#if defined(OS_CHROMEOS)
+ UI_CONTROLS_TYPE_ALTERNATE = UI_CONTROLS_TYPE_NATIVE,
+#else
+ UI_CONTROLS_TYPE_ALTERNATE,
+#endif
+ UI_CONTROLS_TYPE_LAST = UI_CONTROLS_TYPE_ALTERNATE,
+};
+
+class UI_EXPORT UIControlsTypeDelegate {
+ public:
+ virtual ~UIControlsTypeDelegate() {}
+
+ // Determines which UIControlsType a given |view| is for.
+ virtual UIControlsType GetUIControlsTypeForNativeView(
+ gfx::NativeView view) = 0;
+};
+
+} // namespace ui_controls
+
+#endif // UI_UI_CONTROLS_UI_CONTROLS_TYPE_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698