From 0351ab9aef03dad0fd12d04607a07ee84f05c4b2 Mon Sep 17 00:00:00 2001 From: Chandan Padhi Date: Fri, 11 Sep 2020 18:47:36 +0530 Subject: [PATCH] [M85 Dev][EFL] Fix compilation errors for desktop build This commit resolves compilation errors to enable EFL port. Change-Id: I8fb3a119a3ab2d5971b880e17fe8bb304befd3a4 Signed-off-by: Chandan Padhi --- base/numerics/checked_math.h | 22 +- base/numerics/checked_math_impl.h | 2 +- base/numerics/clamped_math.h | 20 +- base/numerics/safe_math_shared_impl.h | 3 +- .../task/sequence_manager/sequence_manager_impl.cc | 2 +- base/trace_event/trace_arguments.h | 16 +- build/config/ui.gni | 2 +- content/common/cursors/webcursor.h | 2 +- content/public/common/input_event_ack_state.h | 2 + content/renderer/render_thread_impl.h | 2 +- .../client/gles2_implementation_efl_autogen.h | 311 +++++++++------------ .../gles2_implementation_efl_header_autogen.h | 154 ++++------ tizen_src/build/config/compiler/BUILD.gn | 7 +- .../base/message_loop/message_pump_ecore.cc | 7 +- .../base/message_loop/message_pump_for_ui_efl.cc | 5 +- .../compositor/evasgl_delegated_frame_host.cc | 11 +- .../browser/compositor/evasgl_output_surface.cc | 20 +- .../browser/compositor/evasgl_output_surface.h | 8 +- .../renderer_host/disambiguation_popup_efl.h | 1 + .../renderer_host/render_widget_host_view_efl.cc | 80 +++--- .../renderer_host/render_widget_host_view_efl.h | 27 +- .../browser/renderer_host/web_event_factory_efl.cc | 37 ++- .../browser/renderer_host/web_event_factory_efl.h | 2 +- .../content/browser/selection/selection_box_efl.h | 4 +- .../browser/selection/selection_controller_efl.cc | 24 +- .../browser/selection/selection_controller_efl.h | 4 +- .../browser/web_contents/web_contents_impl_efl.cc | 8 +- .../browser/web_contents/web_contents_impl_efl.h | 5 +- .../browser/web_contents/web_contents_view_efl.cc | 14 +- .../browser/web_contents/web_contents_view_efl.h | 14 +- .../browser/web_contents/web_drag_dest_efl.h | 2 +- .../browser/web_contents/web_drag_source_efl.cc | 4 +- .../browser/web_contents/web_drag_source_efl.h | 2 +- .../content/common/cursors/webcursor_efl.cc | 11 +- .../browser/web_contents_view_efl_delegate.h | 6 +- .../content/shell/browser/shell_efl.cc | 25 +- .../shell_web_contents_view_delegate_efl.cc | 17 +- tizen_src/chromium_impl/efl/init.cc | 1 - tizen_src/chromium_impl/efl/window_factory.cc | 1 + .../client/gles2_implementation_efl.cc | 12 +- .../client/gles2_implementation_efl.h | 5 +- .../client/shared_mailbox_manager.cc | 2 +- tizen_src/chromium_impl/ui/BUILD.gn | 5 +- .../ui/base/clipboard/clipboard_helper_efl.h | 3 +- tizen_src/chromium_impl/ui/display/screen_efl.cc | 10 +- .../chromium_impl/ui/gl/gl_shared_context_efl.cc | 3 +- .../chromium_impl/ui/ozone/ozone_platform_efl.cc | 27 +- .../chromium_impl/ui/ozone/surface_factory_efl.cc | 11 +- .../chromium_impl/ui/snapshot/snapshot_efl.cc | 6 +- tizen_src/ewk/efl_integration/BUILD.gn | 8 +- .../browser/browsing_data_remover_efl.cc | 30 +- .../browser/download_manager_delegate_efl.cc | 39 +-- .../browser/download_manager_delegate_efl.h | 23 +- .../browser/favicon/favicon_database.cc | 3 +- .../browser/favicon/favicon_database_p.cc | 3 +- .../browser/favicon/favicon_downloader.cc | 13 +- .../efl_integration/browser/login_delegate_efl.cc | 23 +- .../browser/policy_response_delegate_efl.cc | 19 +- .../browser/policy_response_delegate_efl.h | 3 - .../browser/quota_permission_context_efl.cc | 23 +- .../browser/quota_permission_context_efl.h | 4 +- .../resource_dispatcher_host_delegate_efl.cc | 1 - .../resource_dispatcher_host_delegate_efl.h | 2 - .../browser/resource_throttle_efl.cc | 6 +- .../browser/resource_throttle_efl.h | 28 +- .../browser/selectpicker/popup_menu_item.cc | 8 +- .../browser/selectpicker/popup_menu_item.h | 6 +- .../browser/selectpicker/popup_menu_item_private.h | 4 +- .../ewk/efl_integration/browser/sound_effect.cc | 2 +- .../browser/ssl_host_state_delegate_efl.cc | 14 +- .../browser/ssl_host_state_delegate_efl.h | 17 +- .../ewk/efl_integration/browser_context_efl.cc | 31 +- .../ewk/efl_integration/browser_context_efl.h | 23 +- tizen_src/ewk/efl_integration/command_line_efl.cc | 1 + .../efl_integration/common/content_client_efl.cc | 6 +- .../efl_integration/common/content_client_efl.h | 9 +- .../efl_integration/common/print_pages_params.cc | 2 +- .../efl_integration/common/print_pages_params.h | 8 +- .../efl_integration/common/render_messages_ewk.h | 2 + .../efl_integration/content_browser_client_efl.cc | 25 +- .../efl_integration/content_browser_client_efl.h | 60 ++-- .../efl_integration/content_main_delegate_efl.cc | 1 - .../efl_integration/context_menu_controller_efl.cc | 18 +- .../efl_integration/context_menu_controller_efl.h | 4 +- tizen_src/ewk/efl_integration/cookie_manager.cc | 53 ++-- tizen_src/ewk/efl_integration/cookie_manager.h | 5 +- .../ewk/efl_integration/devtools_delegate_efl.cc | 2 +- tizen_src/ewk/efl_integration/eweb_context.cc | 65 +++-- tizen_src/ewk/efl_integration/eweb_view.cc | 70 ++--- tizen_src/ewk/efl_integration/eweb_view.h | 4 +- tizen_src/ewk/efl_integration/ewk_global_data.cc | 4 +- .../ewk/efl_integration/ipc_message_start_ewk.h | 2 +- tizen_src/ewk/efl_integration/locale_efl.cc | 5 +- .../ewk/efl_integration/network_delegate_efl.cc | 5 +- .../ewk/efl_integration/network_delegate_efl.h | 5 +- .../private/ewk_policy_decision_private.cc | 1 - .../private/ewk_policy_decision_private.h | 4 - tizen_src/ewk/efl_integration/public/ewk_view.cc | 19 +- .../renderer/content_renderer_client_efl.cc | 37 +-- .../renderer/content_renderer_client_efl.h | 12 +- .../renderer/print_web_view_helper_efl.cc | 4 +- .../renderer/render_frame_observer_efl.cc | 1 - .../renderer/render_view_observer_efl.cc | 10 +- .../renderer/render_view_observer_efl.h | 2 +- .../url_request_context_getter_efl.cc | 38 +-- .../url_request_context_getter_efl.h | 4 +- .../efl_integration/web_contents_delegate_efl.cc | 79 +++--- .../efl_integration/web_contents_delegate_efl.h | 57 ++-- tizen_src/ewk/efl_integration/wrt/v8widget.cc | 2 +- .../ewk/efl_integration/wrt/wrt_widget_host.cc | 3 +- 110 files changed, 921 insertions(+), 1010 deletions(-) diff --git a/base/numerics/checked_math.h b/base/numerics/checked_math.h index 814b9e4..ede3344 100644 --- a/base/numerics/checked_math.h +++ b/base/numerics/checked_math.h @@ -117,25 +117,25 @@ class CheckedNumeric { // Prototypes for the supported arithmetic operator overloads. template - CheckedNumeric& operator+=(const Src rhs); + constexpr CheckedNumeric& operator+=(const Src rhs); template - CheckedNumeric& operator-=(const Src rhs); + constexpr CheckedNumeric& operator-=(const Src rhs); template - CheckedNumeric& operator*=(const Src rhs); + constexpr CheckedNumeric& operator*=(const Src rhs); template - CheckedNumeric& operator/=(const Src rhs); + constexpr CheckedNumeric& operator/=(const Src rhs); template - CheckedNumeric& operator%=(const Src rhs); + constexpr CheckedNumeric& operator%=(const Src rhs); template - CheckedNumeric& operator<<=(const Src rhs); + constexpr CheckedNumeric& operator<<=(const Src rhs); template - CheckedNumeric& operator>>=(const Src rhs); + constexpr CheckedNumeric& operator>>=(const Src rhs); template - CheckedNumeric& operator&=(const Src rhs); + constexpr CheckedNumeric& operator&=(const Src rhs); template - CheckedNumeric& operator|=(const Src rhs); + constexpr CheckedNumeric& operator|=(const Src rhs); template - CheckedNumeric& operator^=(const Src rhs); + constexpr CheckedNumeric& operator^=(const Src rhs); constexpr CheckedNumeric operator-() const { // The negation of two's complement int min is int min, so we simply @@ -238,7 +238,7 @@ class CheckedNumeric { // Assignment arithmetic operations. template