Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ozone / ui / webui / ozone_webui.cc
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ozone/ui/webui/ozone_webui.h"
6
7 #include <set>
8
9 #include "base/command_line.h"
10 #include "base/debug/leak_annotations.h"
11 #include "base/environment.h"
12 #include "base/i18n/rtl.h"
13 #include "base/logging.h"
14 #include "base/nix/mime_util_xdg.h"
15 #include "base/stl_util.h"
16 #include "base/strings/stringprintf.h"
17 #include "ozone/ui/webui/select_file_dialog_impl_webui.h"
18
19 namespace views {
20
21 OzoneWebUI::OzoneWebUI() {
22 }
23
24 OzoneWebUI::~OzoneWebUI() {
25 }
26
27 void OzoneWebUI::Initialize() {
28 }
29
30 ui::SelectFileDialog* OzoneWebUI::CreateSelectFileDialog(
31     ui::SelectFileDialog::Listener* listener,
32     ui::SelectFilePolicy* policy) const {
33   return ui::SelectFileDialogImplWebUI::Create(listener, policy);
34 }
35
36 scoped_ptr<ui::LinuxInputMethodContext> OzoneWebUI::CreateInputMethodContext(
37       ui::LinuxInputMethodContextDelegate* delegate) const {
38   return scoped_ptr<ui::LinuxInputMethodContext>();
39 }
40
41 gfx::FontRenderParams OzoneWebUI::GetDefaultFontRenderParams() const {
42   NOTIMPLEMENTED();
43   return params_;
44 }
45
46 scoped_ptr<gfx::ScopedPangoFontDescription>
47   OzoneWebUI::GetDefaultPangoFontDescription() const {
48   NOTIMPLEMENTED();
49   return scoped_ptr<gfx::ScopedPangoFontDescription>();
50 }
51
52 double OzoneWebUI::GetFontDPI() const {
53   NOTIMPLEMENTED();
54   return 96.0;
55 }
56
57 gfx::Image OzoneWebUI::GetThemeImageNamed(int id) const {
58   return gfx::Image();
59 }
60
61 bool OzoneWebUI::GetColor(int id, SkColor* color) const {
62   return false;
63 }
64
65 bool OzoneWebUI::HasCustomImage(int id) const {
66   return false;
67 }
68
69 SkColor OzoneWebUI::GetFocusRingColor() const {
70   return SK_ColorBLACK;
71 }
72
73 SkColor OzoneWebUI::GetThumbActiveColor() const {
74   return SK_ColorBLACK;
75 }
76
77 SkColor OzoneWebUI::GetThumbInactiveColor() const {
78   return SK_ColorBLACK;
79 }
80
81 SkColor OzoneWebUI::GetTrackColor() const {
82   return SK_ColorBLACK;
83 }
84
85 SkColor OzoneWebUI::GetActiveSelectionBgColor() const {
86   return SK_ColorBLACK;
87 }
88
89 SkColor OzoneWebUI::GetActiveSelectionFgColor() const {
90   return SK_ColorBLACK;
91 }
92
93 SkColor OzoneWebUI::GetInactiveSelectionBgColor() const {
94   return SK_ColorBLACK;
95 }
96
97 SkColor OzoneWebUI::GetInactiveSelectionFgColor() const {
98   return SK_ColorBLACK;
99 }
100
101 double OzoneWebUI::GetCursorBlinkInterval() const {
102   return 1.0;
103 }
104
105 ui::NativeTheme* OzoneWebUI::GetNativeTheme(aura::Window* window) const {
106   return 0;
107 }
108
109 void OzoneWebUI::SetNativeThemeOverride(
110       const NativeThemeGetter& callback) {
111 }
112
113 bool OzoneWebUI::GetDefaultUsesSystemTheme() const {
114   return false;
115 }
116
117 void OzoneWebUI::SetDownloadCount(int count) const {
118 }
119
120 void OzoneWebUI::SetProgressFraction(float percentage) const {
121 }
122
123 bool OzoneWebUI::IsStatusIconSupported() const {
124   return false;
125 }
126
127 scoped_ptr<StatusIconLinux> OzoneWebUI::CreateLinuxStatusIcon(
128   const gfx::ImageSkia& image,
129   const base::string16& tool_tip) const {
130   return scoped_ptr<views::StatusIconLinux>();
131 }
132
133 gfx::Image OzoneWebUI::GetIconForContentType(
134   const std::string& content_type, int size) const {
135   return gfx::Image();
136 }
137
138 scoped_ptr<Border> OzoneWebUI::CreateNativeBorder(
139   views::LabelButton* owning_button,
140   scoped_ptr<views::LabelButtonBorder> border) {
141   return border.Pass();
142 }
143
144 void OzoneWebUI::AddWindowButtonOrderObserver(
145   WindowButtonOrderObserver* observer) {
146 }
147
148 void OzoneWebUI::RemoveWindowButtonOrderObserver(
149   WindowButtonOrderObserver* observer) {
150 }
151
152 bool OzoneWebUI::UnityIsRunning() {
153   return 0;
154 }
155
156 LinuxUI::NonClientMiddleClickAction
157 OzoneWebUI::GetNonClientMiddleClickAction() {
158   return MIDDLE_CLICK_ACTION_NONE;
159 }
160
161 void OzoneWebUI::NotifyWindowManagerStartupComplete() {
162 }
163
164 bool OzoneWebUI::MatchEvent(const ui::Event& event,
165   std::vector<TextEditCommandAuraLinux>* commands) {
166   return false;
167 }
168
169 }  // namespace views
170
171 views::LinuxUI* BuildWebUI() {
172   return new views::OzoneWebUI;
173 }