1 // Copyright (c) 2017 The Chromium Embedded Framework Authors. All rights 2 // reserved. Use of this source code is governed by a BSD-style license that 3 // can be found in the LICENSE file. 4 5 #ifndef CEF_TESTS_CEFCLIENT_BROWSER_VIEWS_STYLE_H_ 6 #define CEF_TESTS_CEFCLIENT_BROWSER_VIEWS_STYLE_H_ 7 #pragma once 8 9 #include "include/cef_menu_model.h" 10 #include "include/views/cef_label_button.h" 11 #include "include/views/cef_panel.h" 12 #include "include/views/cef_textfield.h" 13 14 namespace client { 15 16 namespace views_style { 17 18 // Returns true if a style is set. 19 bool IsSet(); 20 21 // Apply style to views objects. 22 void ApplyBackgroundTo(CefRefPtr<CefView> view); 23 void ApplyTo(CefRefPtr<CefPanel> panel); 24 void ApplyTo(CefRefPtr<CefLabelButton> label_button); 25 void ApplyTo(CefRefPtr<CefTextfield> textfield); 26 void ApplyTo(CefRefPtr<CefMenuModel> menu_model); 27 28 } // namespace views_style 29 30 } // namespace client 31 32 #endif // CEF_TESTS_CEFCLIENT_BROWSER_VIEWS_STYLE_H_ 33