github.com/ckxng/wakeup@v0.0.0-20190105202853-90356a5f5a15/include/internal/cef_types_linux.h (about)

     1  // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved.
     2  //
     3  // Redistribution and use in source and binary forms, with or without
     4  // modification, are permitted provided that the following conditions are
     5  // met:
     6  //
     7  //    * Redistributions of source code must retain the above copyright
     8  // notice, this list of conditions and the following disclaimer.
     9  //    * Redistributions in binary form must reproduce the above
    10  // copyright notice, this list of conditions and the following disclaimer
    11  // in the documentation and/or other materials provided with the
    12  // distribution.
    13  //    * Neither the name of Google Inc. nor the name Chromium Embedded
    14  // Framework nor the names of its contributors may be used to endorse
    15  // or promote products derived from this software without specific prior
    16  // written permission.
    17  //
    18  // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    19  // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    20  // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    21  // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
    22  // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    23  // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    24  // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    25  // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    26  // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    27  // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    28  // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    29  
    30  
    31  #ifndef CEF_INCLUDE_INTERNAL_CEF_TYPES_LINUX_H_
    32  #define CEF_INCLUDE_INTERNAL_CEF_TYPES_LINUX_H_
    33  #pragma once
    34  
    35  #include "include/internal/cef_build.h"
    36  
    37  #if defined(OS_LINUX)
    38  #include <gtk/gtk.h>
    39  #include "include/internal/cef_string.h"
    40  
    41  #ifdef __cplusplus
    42  extern "C" {
    43  #endif
    44  
    45  // Handle types.
    46  #define cef_cursor_handle_t GdkCursor*
    47  #define cef_event_handle_t GdkEvent*
    48  #define cef_window_handle_t GtkWidget*
    49  #define cef_text_input_context_t void*
    50  
    51  ///
    52  // Structure representing CefExecuteProcess arguments.
    53  ///
    54  typedef struct _cef_main_args_t {
    55    int argc;
    56    char** argv;
    57  } cef_main_args_t;
    58  
    59  ///
    60  // Class representing window information.
    61  ///
    62  typedef struct _cef_window_info_t {
    63    // Pointer for the parent GtkBox widget.
    64    cef_window_handle_t parent_widget;
    65  
    66    // If window rendering is disabled no browser window will be created. Set
    67    // |parent_widget| to the window that will act as the parent for popup menus,
    68    // dialog boxes, etc.
    69    int window_rendering_disabled;
    70  
    71    // Set to true to enable transparent painting.
    72    int transparent_painting;
    73  
    74    // Pointer for the new browser widget.
    75    cef_window_handle_t widget;
    76  } cef_window_info_t;
    77  
    78  #ifdef __cplusplus
    79  }
    80  #endif
    81  
    82  #endif  // OS_LINUX
    83  
    84  #endif  // CEF_INCLUDE_INTERNAL_CEF_TYPES_LINUX_H_