-// Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved.
+// Copyright (c) 2009 Marshall A. Greenblatt. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-#ifndef CEF_INCLUDE_INTERNAL_CEF_TYPES_LINUX_H_
-#define CEF_INCLUDE_INTERNAL_CEF_TYPES_LINUX_H_
+#ifndef CEF_INCLUDE_INTERNAL_CEF_STRING_LIST_H_
+#define CEF_INCLUDE_INTERNAL_CEF_STRING_LIST_H_
#pragma once
-#include "include/internal/cef_build.h"
-
-#if defined(OS_LINUX)
-//#include <gtk/gtk.h>
+#include "include/internal/cef_export.h"
#include "include/internal/cef_string.h"
#ifdef __cplusplus
extern "C" {
#endif
-// Handle types.
-#define cef_cursor_handle_t void*
-#define cef_event_handle_t void*
-#define cef_window_handle_t void*
-//#define cef_cursor_handle_t GdkCursor*
-//#define cef_event_handle_t GdkEvent*
-//#define cef_window_handle_t GtkWidget*
-#define cef_text_input_context_t void*
+///
+// CEF string maps are a set of key/value string pairs.
+///
+typedef void* cef_string_list_t;
///
-// Structure representing CefExecuteProcess arguments.
+// Allocate a new string map.
///
-typedef struct _cef_main_args_t {
- int argc;
- char** argv;
-} cef_main_args_t;
+CEF_EXPORT cef_string_list_t cef_string_list_alloc();
///
-// Class representing window information.
+// Return the number of elements in the string list.
///
-typedef struct _cef_window_info_t {
- // Pointer for the parent GtkBox widget.
- cef_window_handle_t parent_widget;
+CEF_EXPORT size_t cef_string_list_size(cef_string_list_t list);
- // If window rendering is disabled no browser window will be created. Set
- // |parent_widget| to the window that will act as the parent for popup menus,
- // dialog boxes, etc.
- int window_rendering_disabled;
+///
+// Retrieve the value at the specified zero-based string list index. Returns
+// true (1) if the value was successfully retrieved.
+///
+CEF_EXPORT int cef_string_list_value(cef_string_list_t list,
+ size_t index, cef_string_t* value);
- // Set to true to enable transparent painting.
- int transparent_painting;
+///
+// Append a new value at the end of the string list.
+///
+CEF_EXPORT void cef_string_list_append(cef_string_list_t list,
+ const cef_string_t* value);
- // Pointer for the new browser widget.
- cef_window_handle_t widget;
-} cef_window_info_t;
+///
+// Clear the string list.
+///
+CEF_EXPORT void cef_string_list_clear(cef_string_list_t list);
+
+///
+// Free the string list.
+///
+CEF_EXPORT void cef_string_list_free(cef_string_list_t list);
+
+///
+// Creates a copy of an existing string list.
+///
+CEF_EXPORT cef_string_list_t cef_string_list_copy(cef_string_list_t list);
#ifdef __cplusplus
}
#endif
-#endif // OS_LINUX
-
-#endif // CEF_INCLUDE_INTERNAL_CEF_TYPES_LINUX_H_
+#endif // CEF_INCLUDE_INTERNAL_CEF_STRING_LIST_H_