| 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_
|
|
|