[M73 Dev][EFL] Move MessagePumpForUIEfl from efl_integration to chromium_impl 27/205627/1
authorChandan Padhi <c.padhi@samsung.com>
Wed, 8 May 2019 05:31:54 +0000 (11:01 +0530)
committerChandan Padhi <c.padhi@samsung.com>
Wed, 8 May 2019 05:42:01 +0000 (11:12 +0530)
This commit moves message_pump_for_ui_efl.cc|h files to
chromium_impl/base/message_loop/ to align with upstream folder structure.

Change-Id: I94badba3b7efd6387cf96d9af1d231ad4cc720ab
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
tizen_src/chromium_impl/base/base_efl.gni
tizen_src/chromium_impl/base/message_loop/message_pump_for_ui_efl.cc [moved from tizen_src/ewk/efl_integration/message_pump_for_ui_efl.cc with 97% similarity]
tizen_src/chromium_impl/base/message_loop/message_pump_for_ui_efl.h [moved from tizen_src/ewk/efl_integration/message_pump_for_ui_efl.h with 81% similarity]
tizen_src/ewk/efl_integration/BUILD.gn
tizen_src/ewk/efl_integration/ewk_global_data.cc

index 10ce612..aabb73b 100644 (file)
@@ -11,6 +11,8 @@ external_base_configs = [
 external_base_sources = [
   "//tizen_src/chromium_impl/base/message_loop/message_pump_ecore.cc",
   "//tizen_src/chromium_impl/base/message_loop/message_pump_ecore.h",
+  "//tizen_src/chromium_impl/base/message_loop/message_pump_for_ui_efl.cc",
+  "//tizen_src/chromium_impl/base/message_loop/message_pump_for_ui_efl.h",
 ]
 
 if (use_glib) {
@@ -2,21 +2,21 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "message_pump_for_ui_efl.h"
+#include "base/message_loop/message_pump_for_ui_efl.h"
 
 #include "base/command_line.h"
 #include "base/message_loop/message_loop.h"
 #include "base/run_loop.h"
 #include "base/time/time.h"
 #include "cc/base/switches.h"
-#include "common/content_switches_efl.h"
+#include "ewk/efl_integration/common/content_switches_efl.h"
 
 namespace base {
 
 namespace {
 static const char dummy_pipe_message[] = "W";
 static const int dummy_pipe_message_size = 1;
-}
+}  // namespace
 
 MessagePumpForUIEfl::MessagePumpForUIEfl()
     : pipe_(ecore_pipe_add(&PipeCallback, this)),
@@ -201,4 +201,4 @@ void MessagePumpForUIEfl::DoDelayedWork() {
     ScheduleDelayedWork(next_delayed_work_time);
 #endif
 }
-}
+}  // namespace base
@@ -5,16 +5,17 @@
 #ifndef MESSAGE_PUMP_FOR_UI_EFL
 #define MESSAGE_PUMP_FOR_UI_EFL
 
-#include "base/message_loop/message_pump.h"
-#include "base/synchronization/lock.h"
 #include <Ecore.h>
 #include <unordered_set>
+#include "base/message_loop/message_pump.h"
+#include "base/synchronization/lock.h"
 
 namespace base {
 
 class RunLoop;
 class TimeTicks;
-// TODO(g.czajkowski): two lines below are needless for limit-memory-allocation-in-schedule-delayed-work.
+// TODO(g.czajkowski): two lines below are needless for
+// limit-memory-allocation-in-schedule-delayed-work.
 class MessagePumpForUIEfl;
 typedef std::pair<MessagePumpForUIEfl*, Ecore_Timer*> TimerPair;
 
@@ -23,7 +24,7 @@ class BASE_EXPORT MessagePumpForUIEfl : public base::MessagePump {
   MessagePumpForUIEfl();
   virtual ~MessagePumpForUIEfl();
 
-  virtual void Run(Delegate *) override;
+  virtual void Run(Delegate*) override;
   virtual void Quit() override;
   virtual void ScheduleWork() override;
   virtual void ScheduleDelayedWork(const base::TimeTicks&) override;
@@ -34,7 +35,8 @@ class BASE_EXPORT MessagePumpForUIEfl : public base::MessagePump {
   void DoWork();
   void DoDelayedWork();
 
-  // TODO(g.czajkowski): needless if limit-memory-allocation-in-schedule-delayed-work gets accepted.
+  // TODO(g.czajkowski): needless if
+  // limit-memory-allocation-in-schedule-delayed-work gets accepted.
   std::unordered_set<TimerPair*> pending_timers_;
   Ecore_Pipe* pipe_;
   Ecore_Timer* schedule_delayed_work_timer_;
@@ -47,6 +49,6 @@ class BASE_EXPORT MessagePumpForUIEfl : public base::MessagePump {
   DISALLOW_COPY_AND_ASSIGN(MessagePumpForUIEfl);
 };
 
-}
+}  // namespace base
 
 #endif
index e2c28a3..7740682 100644 (file)
@@ -251,8 +251,6 @@ shared_library("chromium-ewk") {
     "http_user_agent_settings_efl.h",
     "locale_efl.cc",
     "locale_efl.h",
-    "message_pump_for_ui_efl.cc",
-    "message_pump_for_ui_efl.h",
     "network_delegate_efl.cc",
     "network_delegate_efl.h",
     "notification_permission_popup.cc",
index a947a39..7a8f271 100644 (file)
@@ -9,6 +9,7 @@
 #include "base/feature_list.h"
 #include "base/logging.h"
 #include "base/message_loop/message_loop.h"
+#include "base/message_loop/message_pump_for_ui_efl.h"
 #include "base/path_service.h"
 #include "browser/autofill/personal_data_manager_factory.h"
 #include "content/browser/gpu/gpu_process_host.h"
@@ -33,7 +34,6 @@
 
 #include "command_line_efl.h"
 #include "content_main_delegate_efl.h"
-#include "message_pump_for_ui_efl.h"
 #include "ui/display/screen_efl.h"
 
 #include "content/browser/gpu/gpu_main_thread_factory.h"