Nobuhiko Tanibata | 487adc4 | 2014-11-27 13:22:37 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 DENSO CORPORATION |
| 3 | * |
| 4 | * Permission to use, copy, modify, distribute, and sell this software and |
| 5 | * its documentation for any purpose is hereby granted without fee, provided |
| 6 | * that the above copyright notice appear in all copies and that both that |
| 7 | * copyright notice and this permission notice appear in supporting |
| 8 | * documentation, and that the name of the copyright holders not be used in |
| 9 | * advertising or publicity pertaining to distribution of the software |
| 10 | * without specific, written prior permission. The copyright holders make |
| 11 | * no representations about the suitability of this software for any |
| 12 | * purpose. It is provided "as is" without express or implied warranty. |
| 13 | * |
| 14 | * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS |
| 15 | * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND |
| 16 | * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| 17 | * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER |
| 18 | * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF |
| 19 | * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN |
| 20 | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 21 | */ |
| 22 | |
| 23 | #include <stdbool.h> |
| 24 | |
| 25 | #include "compositor.h" |
| 26 | |
| 27 | struct ivi_shell |
| 28 | { |
| 29 | struct wl_listener destroy_listener; |
| 30 | |
| 31 | struct weston_compositor *compositor; |
| 32 | |
| 33 | struct wl_list ivi_surface_list; /* struct ivi_shell_surface::link */ |
| 34 | |
| 35 | struct ivi_layout_interface *ivi_layout; |
Nobuhiko Tanibata | 0038b73 | 2014-11-27 13:25:34 +0900 | [diff] [blame^] | 36 | |
| 37 | struct wl_listener show_input_panel_listener; |
| 38 | struct wl_listener hide_input_panel_listener; |
| 39 | struct wl_listener update_input_panel_listener; |
| 40 | |
| 41 | struct weston_layer input_panel_layer; |
| 42 | |
| 43 | bool locked; |
| 44 | bool showing_input_panels; |
| 45 | |
| 46 | struct { |
| 47 | struct weston_surface *surface; |
| 48 | pixman_box32_t cursor_rectangle; |
| 49 | } text_input; |
| 50 | |
| 51 | struct { |
| 52 | struct wl_resource *binding; |
| 53 | struct wl_list surfaces; |
| 54 | } input_panel; |
Nobuhiko Tanibata | 487adc4 | 2014-11-27 13:22:37 +0900 | [diff] [blame] | 55 | }; |
Nobuhiko Tanibata | 0038b73 | 2014-11-27 13:25:34 +0900 | [diff] [blame^] | 56 | |
| 57 | struct weston_view * |
| 58 | get_default_view(struct weston_surface *surface); |
| 59 | |
| 60 | int |
| 61 | input_panel_setup(struct ivi_shell *shell); |
| 62 | |
| 63 | void |
| 64 | input_panel_destroy(struct ivi_shell *shell); |