mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-12 01:26:03 +01:00
4a44e16a09
To test: Run `cefclient.exe --use-views --hide-frame --hide-controls` Add `--enable-chrome-runtime` for the same behavior using the Chrome location bar instead of a text field.
33 lines
943 B
C++
33 lines
943 B
C++
// Copyright (c) 2017 The Chromium Embedded Framework 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 CEF_TESTS_CEFCLIENT_BROWSER_VIEWS_STYLE_H_
|
|
#define CEF_TESTS_CEFCLIENT_BROWSER_VIEWS_STYLE_H_
|
|
#pragma once
|
|
|
|
#include "include/cef_menu_model.h"
|
|
#include "include/views/cef_label_button.h"
|
|
#include "include/views/cef_panel.h"
|
|
#include "include/views/cef_textfield.h"
|
|
|
|
namespace client {
|
|
|
|
namespace views_style {
|
|
|
|
// Returns true if a style is set.
|
|
bool IsSet();
|
|
|
|
// Apply style to views objects.
|
|
void ApplyBackgroundTo(CefRefPtr<CefView> view);
|
|
void ApplyTo(CefRefPtr<CefPanel> panel);
|
|
void ApplyTo(CefRefPtr<CefLabelButton> label_button);
|
|
void ApplyTo(CefRefPtr<CefTextfield> textfield);
|
|
void ApplyTo(CefRefPtr<CefMenuModel> menu_model);
|
|
|
|
} // namespace views_style
|
|
|
|
} // namespace client
|
|
|
|
#endif // CEF_TESTS_CEFCLIENT_BROWSER_VIEWS_STYLE_H_
|