OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/views/controls/tabbed_pane/native_tabbed_pane_gtk.h" | 5 #include "ui/views/controls/tabbed_pane/native_tabbed_pane_gtk.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "ui/gfx/canvas.h" | 12 #include "ui/gfx/canvas.h" |
13 #include "ui/gfx/font.h" | 13 #include "ui/gfx/font.h" |
14 #include "ui/gfx/skia_utils_gtk.h" | 14 #include "ui/gfx/skia_utils_gtk.h" |
| 15 #include "ui/views/background.h" |
15 #include "ui/views/controls/tabbed_pane/tabbed_pane.h" | 16 #include "ui/views/controls/tabbed_pane/tabbed_pane.h" |
16 #include "ui/views/controls/tabbed_pane/tabbed_pane_listener.h" | 17 #include "ui/views/controls/tabbed_pane/tabbed_pane_listener.h" |
17 #include "ui/views/layout/fill_layout.h" | 18 #include "ui/views/layout/fill_layout.h" |
18 #include "ui/views/widget/native_widget.h" | 19 #include "ui/views/widget/native_widget.h" |
19 #include "ui/views/widget/widget.h" | 20 #include "ui/views/widget/widget.h" |
20 #include "views/background.h" | |
21 | 21 |
22 namespace views { | 22 namespace views { |
23 | 23 |
24 //////////////////////////////////////////////////////////////////////////////// | 24 //////////////////////////////////////////////////////////////////////////////// |
25 // NativeTabbedPaneGtk, public: | 25 // NativeTabbedPaneGtk, public: |
26 | 26 |
27 NativeTabbedPaneGtk::NativeTabbedPaneGtk(TabbedPane* tabbed_pane) | 27 NativeTabbedPaneGtk::NativeTabbedPaneGtk(TabbedPane* tabbed_pane) |
28 : NativeControlGtk(), | 28 : NativeControlGtk(), |
29 tabbed_pane_(tabbed_pane) { | 29 tabbed_pane_(tabbed_pane) { |
30 set_focus_view(tabbed_pane); | 30 set_focus_view(tabbed_pane); |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 //////////////////////////////////////////////////////////////////////////////// | 224 //////////////////////////////////////////////////////////////////////////////// |
225 // NativeTabbedPaneWrapper, public: | 225 // NativeTabbedPaneWrapper, public: |
226 | 226 |
227 // static | 227 // static |
228 NativeTabbedPaneWrapper* NativeTabbedPaneWrapper::CreateNativeWrapper( | 228 NativeTabbedPaneWrapper* NativeTabbedPaneWrapper::CreateNativeWrapper( |
229 TabbedPane* tabbed_pane) { | 229 TabbedPane* tabbed_pane) { |
230 return new NativeTabbedPaneGtk(tabbed_pane); | 230 return new NativeTabbedPaneGtk(tabbed_pane); |
231 } | 231 } |
232 | 232 |
233 } // namespace views | 233 } // namespace views |
OLD | NEW |