Chromium Code Reviews| 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..8cdcbc7c350166b0076912f93ece5148e6ac15f8 |
| --- /dev/null |
| +++ b/ui/ui_controls/ui_controls_type_delegate.h |
| @@ -0,0 +1,33 @@ |
| +// 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_ |
| + |
|
oshima
2012/11/15 23:37:41
#include "ui/base/ui_export.h"
scottmg
2012/11/16 17:58:54
Done.
|
| +#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_ |