OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/views_delegate.h" | 5 #include "ui/views/views_delegate.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "ui/views/layout/layout_constants.h" | 9 #include "ui/views/layout/layout_constants.h" |
10 #include "ui/views/views_touch_selection_controller_factory.h" | 10 #include "ui/views/views_touch_selection_controller_factory.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 } | 99 } |
100 | 100 |
101 bool ViewsDelegate::WindowManagerProvidesTitleBar(bool maximized) { | 101 bool ViewsDelegate::WindowManagerProvidesTitleBar(bool maximized) { |
102 return false; | 102 return false; |
103 } | 103 } |
104 | 104 |
105 ui::ContextFactory* ViewsDelegate::GetContextFactory() { | 105 ui::ContextFactory* ViewsDelegate::GetContextFactory() { |
106 return nullptr; | 106 return nullptr; |
107 } | 107 } |
108 | 108 |
| 109 ui::ContextFactoryPrivate* ViewsDelegate::GetContextFactoryPrivate() { |
| 110 return nullptr; |
| 111 } |
| 112 |
109 std::string ViewsDelegate::GetApplicationName() { | 113 std::string ViewsDelegate::GetApplicationName() { |
110 base::FilePath program = base::CommandLine::ForCurrentProcess()->GetProgram(); | 114 base::FilePath program = base::CommandLine::ForCurrentProcess()->GetProgram(); |
111 return program.BaseName().AsUTF8Unsafe(); | 115 return program.BaseName().AsUTF8Unsafe(); |
112 } | 116 } |
113 | 117 |
114 #if defined(OS_WIN) | 118 #if defined(OS_WIN) |
115 int ViewsDelegate::GetAppbarAutohideEdges(HMONITOR monitor, | 119 int ViewsDelegate::GetAppbarAutohideEdges(HMONITOR monitor, |
116 const base::Closure& callback) { | 120 const base::Closure& callback) { |
117 return EDGE_BOTTOM; | 121 return EDGE_BOTTOM; |
118 } | 122 } |
(...skipping 23 matching lines...) Expand all Loading... |
142 views_delegate = this; | 146 views_delegate = this; |
143 | 147 |
144 ui::TouchEditingControllerFactory::SetInstance(views_tsc_factory_.get()); | 148 ui::TouchEditingControllerFactory::SetInstance(views_tsc_factory_.get()); |
145 | 149 |
146 #if defined(USE_AURA) | 150 #if defined(USE_AURA) |
147 touch_selection_menu_runner_.reset(new TouchSelectionMenuRunnerViews()); | 151 touch_selection_menu_runner_.reset(new TouchSelectionMenuRunnerViews()); |
148 #endif | 152 #endif |
149 } | 153 } |
150 | 154 |
151 } // namespace views | 155 } // namespace views |
OLD | NEW |