Skip to content

Commit 0fa299f

Browse files
committed
Clean up include header
1 parent eaf8efd commit 0fa299f

File tree

8 files changed

+31
-22
lines changed

8 files changed

+31
-22
lines changed

shell/platform/tizen/flutter_tizen_view.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
// found in the LICENSE file.
55

66
#include "flutter_tizen_view.h"
7+
#include "flutter/shell/platform/tizen/logger.h"
78
#include "flutter/shell/platform/tizen/tizen_view.h"
89
#include "flutter/shell/platform/tizen/tizen_window.h"
910

10-
#include "flutter/shell/platform/tizen/logger.h"
11-
1211
namespace {
1312

1413
#if defined(MOBILE_PROFILE)

shell/platform/tizen/tizen_view.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#ifndef EMBEDDER_TIZEN_VIEW_H_
66
#define EMBEDDER_TIZEN_VIEW_H_
77

8-
#include <string>
8+
#include <cstdint>
99

1010
#include "flutter/shell/platform/tizen/tizen_view_base.h"
1111

@@ -23,11 +23,11 @@ class TizenView : public TizenViewBase {
2323
TizenViewType GetType() override { return TizenViewType::kView; };
2424

2525
protected:
26-
explicit TizenView(int width, int height)
26+
explicit TizenView(uint32_t width, uint32_t height)
2727
: initial_width_(width), initial_height_(height) {}
2828

29-
int initial_width_ = 0;
30-
int initial_height_ = 0;
29+
uint32_t initial_width_ = 0;
30+
uint32_t initial_height_ = 0;
3131
};
3232

3333
} // namespace flutter

shell/platform/tizen/tizen_view_elementary.cc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
#include "tizen_view_elementary.h"
66

7-
#include "flutter/shell/platform/tizen/flutter_tizen_view.h"
8-
#include "flutter/shell/platform/tizen/logger.h"
9-
107
#include <efl_extension.h>
118
#include <ui/efl_util.h>
129

10+
#include "flutter/shell/platform/tizen/flutter_tizen_view.h"
11+
#include "flutter/shell/platform/tizen/logger.h"
12+
1313
namespace {
1414

1515
static const int kScrollDirectionVertical = 0;
@@ -40,8 +40,8 @@ void EvasObjectResize(Evas_Object* object, uint32_t width, uint32_t height) {
4040

4141
namespace flutter {
4242

43-
TizenViewElementary::TizenViewElementary(int width,
44-
int height,
43+
TizenViewElementary::TizenViewElementary(uint32_t width,
44+
uint32_t height,
4545
Evas_Object* parent)
4646
: TizenView(width, height), parent_(parent) {
4747
if (!CreateView()) {
@@ -156,6 +156,7 @@ void TizenViewElementary::RegisterEventHandlers() {
156156
evas_object_event_callback_add(event_layer_, EVAS_CALLBACK_MOUSE_UP,
157157
evas_object_callbacks_[EVAS_CALLBACK_MOUSE_UP],
158158
this);
159+
159160
evas_object_callbacks_[EVAS_CALLBACK_MOUSE_MOVE] =
160161
[](void* data, Evas* evas, Evas_Object* object, void* event_info) {
161162
auto* self = reinterpret_cast<TizenViewElementary*>(data);

shell/platform/tizen/tizen_view_elementary.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,22 @@
55
#ifndef EMBEDDER_TIZEN_VIEW_ELEMENTARY_H_
66
#define EMBEDDER_TIZEN_VIEW_ELEMENTARY_H_
77

8-
#include "flutter/shell/platform/tizen/tizen_view.h"
9-
108
#define EFL_BETA_API_SUPPORT
119
#include <Ecore.h>
1210
#include <Elementary.h>
1311

12+
#include <cstdint>
13+
#include <string>
1414
#include <unordered_map>
15+
#include <vector>
16+
17+
#include "flutter/shell/platform/tizen/tizen_view.h"
1518

1619
namespace flutter {
1720

1821
class TizenViewElementary : public TizenView {
1922
public:
20-
TizenViewElementary(int width, int height, Evas_Object* parent);
23+
TizenViewElementary(uint32_t width, uint32_t height, Evas_Object* parent);
2124

2225
~TizenViewElementary();
2326

shell/platform/tizen/tizen_window.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#define EMBEDDER_TIZEN_WINDOW_H_
77

88
#include <cstdint>
9-
#include <string>
109
#include <vector>
1110

1211
#include "flutter/shell/platform/tizen/tizen_view_base.h"

shell/platform/tizen/tizen_window_ecore_wl2.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@
55
#ifndef EMBEDDER_TIZEN_WINDOW_ECORE_WL2_H_
66
#define EMBEDDER_TIZEN_WINDOW_ECORE_WL2_H_
77

8-
#include "flutter/shell/platform/tizen/tizen_window.h"
9-
108
#define EFL_BETA_API_SUPPORT
119
#include <Ecore_Wl2.h>
1210
#include <tizen-extension-client-protocol.h>
1311

12+
#include <cstdint>
13+
#include <string>
14+
#include <vector>
15+
16+
#include "flutter/shell/platform/tizen/tizen_window.h"
17+
1418
namespace flutter {
1519

1620
class TizenWindowEcoreWl2 : public TizenWindow {

shell/platform/tizen/tizen_window_elementary.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
#include "tizen_window_elementary.h"
66

7-
#include "flutter/shell/platform/tizen/flutter_tizen_view.h"
8-
#include "flutter/shell/platform/tizen/logger.h"
9-
107
#include <efl_extension.h>
118
#include <ui/efl_util.h>
129

10+
#include "flutter/shell/platform/tizen/flutter_tizen_view.h"
11+
#include "flutter/shell/platform/tizen/logger.h"
12+
1313
namespace {
1414

1515
static const int kScrollDirectionVertical = 0;

shell/platform/tizen/tizen_window_elementary.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@
55
#ifndef EMBEDDER_TIZEN_WINDOW_ELEMENTARY_H_
66
#define EMBEDDER_TIZEN_WINDOW_ELEMENTARY_H_
77

8-
#include "flutter/shell/platform/tizen/tizen_window.h"
9-
108
#include <Elementary.h>
119

10+
#include <cstdint>
11+
#include <string>
1212
#include <unordered_map>
13+
#include <vector>
14+
15+
#include "flutter/shell/platform/tizen/tizen_window.h"
1316

1417
namespace flutter {
1518

0 commit comments

Comments
 (0)