mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-30 11:04:52 +01:00
06e73fff15
- Add Views header files in a new include/views directory. - Add initial top-level window (CefWindow), control (CefBrowserView, CefLabelButton, CefMenuButton, CefPanel, CefScrollView, CefTextfield) and layout (CefBoxLayout, CefFlowLayout) support. See libcef/browser/views/view_impl.h comments for implementation details. - Add Views example usage in cefclient and cefsimple and Views unit tests in cef_unittests. Pass the `--use-views` command-line flag to cefclient, cefsimple and cef_unittests to run using the Views framework instead of platform APIs. For cefclient and cefsimple this will create the browser window and all related functionality using the Views framework. For cef_unittests this will run all tests (except OSR tests) in a Views-based browser window. Views- specific unit tests (`--gtest_filter=Views*`) will be run even if the the `--use-views` flag is not specified. - Pass the `--hide-frame` command-line flag to cefclient to demo a frameless Views-based browser window. - Pass the `--hide-controls` command-line flag to cefclient to demo a browser window without top controls. This also works in non-Views mode. - Pass the `--enable-high-dpi-support` command-line flag to cef_unittests on Windows to test high-DPI support on a display that supports it. - Add CefImage for reading/writing image file formats. - Add CefBrowser::DownloadImage() for downloading image URLs as a CefImage representation. This is primarily for loading favicons. - Add CefMenuModel::CreateMenuModel() and CefMenuModelDelegate for creating custom menus. This is primarily for use with CefMenuButton. - Add CefBrowser::TryCloseBrowser() helper for closing a browser. Also improve related documentation in cef_life_span_handler.h. - Rename cef_page_range_t to cef_range_t. It is now also used by CefTextfield. - Remove CefLifeSpanHandler::RunModal() which is never called. - Add draggable regions example to cefclient.
223 lines
6.6 KiB
Plaintext
223 lines
6.6 KiB
Plaintext
// Microsoft Visual C++ generated resource script.
|
|
//
|
|
#include "cefclient/browser/resource.h"
|
|
|
|
#define APSTUDIO_READONLY_SYMBOLS
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Generated from the TEXTINCLUDE 2 resource.
|
|
//
|
|
#define APSTUDIO_HIDDEN_SYMBOLS
|
|
#include "windows.h"
|
|
#include "include/cef_version.h"
|
|
#undef APSTUDIO_HIDDEN_SYMBOLS
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
#undef APSTUDIO_READONLY_SYMBOLS
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// English (U.S.) resources
|
|
|
|
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
|
#ifdef _WIN32
|
|
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|
#pragma code_page(1252)
|
|
#endif //_WIN32
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Binary
|
|
//
|
|
|
|
IDS_BINDING_HTML BINARY "..\\binding.html"
|
|
IDS_DIALOGS_HTML BINARY "..\\dialogs.html"
|
|
IDS_DRAGGABLE_HTML BINARY "..\\draggable.html"
|
|
IDS_LOCALSTORAGE_HTML BINARY "..\\localstorage.html"
|
|
IDS_LOGO_PNG BINARY "..\\logo.png"
|
|
IDS_MENU_ICON_1X_PNG BINARY "..\\menu_icon.1x.png"
|
|
IDS_MENU_ICON_2X_PNG BINARY "..\\menu_icon.2x.png"
|
|
IDS_OSRTEST_HTML BINARY "..\\osr_test.html"
|
|
IDS_OTHER_TESTS_HTML BINARY "..\\other_tests.html"
|
|
IDS_PDF_HTML BINARY "..\\pdf.html"
|
|
IDS_PDF_PDF BINARY "..\\pdf.pdf"
|
|
IDS_PERFORMANCE_HTML BINARY "..\\performance.html"
|
|
IDS_PERFORMANCE2_HTML BINARY "..\\performance2.html"
|
|
IDS_PREFERENCES_HTML BINARY "..\\preferences.html"
|
|
IDS_RESPONSE_FILTER_HTML BINARY "..\\response_filter.html"
|
|
IDS_TRANSPARENCY_HTML BINARY "..\\transparency.html"
|
|
IDS_URLREQUEST_HTML BINARY "..\\urlrequest.html"
|
|
IDS_WINDOW_HTML BINARY "..\\window.html"
|
|
IDS_WINDOW_ICON_1X_PNG BINARY "..\\window_icon.1x.png"
|
|
IDS_WINDOW_ICON_2X_PNG BINARY "..\\window_icon.2x.png"
|
|
IDS_XMLHTTPREQUEST_HTML BINARY "..\\xmlhttprequest.html"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Icon
|
|
//
|
|
|
|
// Icon with lowest ID value placed first to ensure application icon
|
|
// remains consistent on all systems.
|
|
IDI_CEFCLIENT ICON "cefclient.ico"
|
|
IDI_SMALL ICON "small.ico"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Menu
|
|
//
|
|
|
|
IDC_CEFCLIENT MENU
|
|
BEGIN
|
|
POPUP "&File"
|
|
BEGIN
|
|
MENUITEM "&Find...", ID_FIND
|
|
MENUITEM SEPARATOR
|
|
MENUITEM "E&xit", IDM_EXIT
|
|
END
|
|
POPUP "&Help"
|
|
BEGIN
|
|
MENUITEM "&About ...", IDM_ABOUT
|
|
END
|
|
POPUP "Tests"
|
|
BEGIN
|
|
MENUITEM "Get Source", ID_TESTS_GETSOURCE
|
|
MENUITEM "Get Text", ID_TESTS_GETTEXT
|
|
MENUITEM "New Window", ID_TESTS_WINDOW_NEW
|
|
MENUITEM "Popup Window", ID_TESTS_WINDOW_POPUP
|
|
MENUITEM "Request", ID_TESTS_REQUEST
|
|
MENUITEM "Plugin Info", ID_TESTS_PLUGIN_INFO
|
|
MENUITEM "Zoom In", ID_TESTS_ZOOM_IN
|
|
MENUITEM "Zoom Out", ID_TESTS_ZOOM_OUT
|
|
MENUITEM "Zoom Reset", ID_TESTS_ZOOM_RESET
|
|
MENUITEM "Set FPS", ID_TESTS_OSR_FPS
|
|
MENUITEM "Set Scale Factor", ID_TESTS_OSR_DSF
|
|
MENUITEM "Begin Tracing", ID_TESTS_TRACING_BEGIN
|
|
MENUITEM "End Tracing", ID_TESTS_TRACING_END
|
|
MENUITEM "Print", ID_TESTS_PRINT
|
|
MENUITEM "Print to PDF", ID_TESTS_PRINT_TO_PDF
|
|
MENUITEM "Other Tests", ID_TESTS_OTHER_TESTS
|
|
END
|
|
END
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Accelerator
|
|
//
|
|
|
|
IDC_CEFCLIENT ACCELERATORS
|
|
BEGIN
|
|
"?", IDM_ABOUT, ASCII, ALT
|
|
"/", IDM_ABOUT, ASCII, ALT
|
|
END
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Dialog
|
|
//
|
|
|
|
IDD_ABOUTBOX DIALOG 22, 17, 230, 75
|
|
STYLE DS_SETFONT | DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "About"
|
|
FONT 8, "System"
|
|
BEGIN
|
|
ICON IDI_CEFCLIENT,IDC_MYICON,14,9,16,16
|
|
LTEXT "cefclient Version 1.0",IDC_STATIC,49,10,119,8,SS_NOPREFIX
|
|
LTEXT "Copyright (C) 2008",IDC_STATIC,49,20,119,8
|
|
DEFPUSHBUTTON "OK",IDOK,195,6,30,11,WS_GROUP
|
|
END
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Version
|
|
//
|
|
|
|
VS_VERSION_INFO VERSIONINFO
|
|
FILEVERSION CEF_VERSION_MAJOR,CHROME_VERSION_BUILD,CEF_COMMIT_NUMBER,0
|
|
PRODUCTVERSION CEF_VERSION_MAJOR,CHROME_VERSION_BUILD,CEF_COMMIT_NUMBER,0
|
|
FILEFLAGSMASK 0x17L
|
|
#ifdef _DEBUG
|
|
FILEFLAGS 0x1L
|
|
#else
|
|
FILEFLAGS 0x0L
|
|
#endif
|
|
FILEOS 0x4L
|
|
FILETYPE 0x2L
|
|
FILESUBTYPE 0x0L
|
|
BEGIN
|
|
BLOCK "StringFileInfo"
|
|
BEGIN
|
|
BLOCK "040904b0"
|
|
BEGIN
|
|
VALUE "FileDescription", "Chromium Embedded Framework (CEF) Client Application"
|
|
VALUE "FileVersion", CEF_VERSION
|
|
VALUE "InternalName", "cefclient"
|
|
VALUE "LegalCopyright", "Copyright (C) " MAKE_STRING(COPYRIGHT_YEAR) " The Chromium Embedded Framework Authors"
|
|
VALUE "OriginalFilename", "cefclient.exe"
|
|
VALUE "ProductName", "Chromium Embedded Framework (CEF) Client Application"
|
|
VALUE "ProductVersion", CEF_VERSION
|
|
END
|
|
END
|
|
BLOCK "VarFileInfo"
|
|
BEGIN
|
|
VALUE "Translation", 0x409, 1200
|
|
END
|
|
END
|
|
|
|
#ifdef APSTUDIO_INVOKED
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// TEXTINCLUDE
|
|
//
|
|
|
|
1 TEXTINCLUDE
|
|
BEGIN
|
|
"resource.h\0"
|
|
END
|
|
|
|
2 TEXTINCLUDE
|
|
BEGIN
|
|
"#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
|
|
"#include ""windows.h""\r\n"
|
|
"#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
|
|
"\0"
|
|
END
|
|
|
|
3 TEXTINCLUDE
|
|
BEGIN
|
|
"\r\n"
|
|
"\0"
|
|
END
|
|
|
|
#endif // APSTUDIO_INVOKED
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// String Table
|
|
//
|
|
|
|
STRINGTABLE
|
|
BEGIN
|
|
IDS_APP_TITLE "cefclient"
|
|
IDC_CEFCLIENT "CEFCLIENT"
|
|
IDS_OSR_WIDGET_CLASS "CEFCLIENT-OSR-WIDGET"
|
|
END
|
|
|
|
#endif // English (U.S.) resources
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef APSTUDIO_INVOKED
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Generated from the TEXTINCLUDE 3 resource.
|
|
//
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
#endif // not APSTUDIO_INVOKED
|
|
|