Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Side by Side Diff: ui/views/views_delegate.cc

Issue 2563783002: ui + mus: Split ContextFactory into ContextFactory(Client) and ContextFactoryPrivate (Closed)
Patch Set: Restore mash Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/views_delegate.h ('k') | ui/views_content_client/views_content_client_main_parts.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/views/views_delegate.h ('k') | ui/views_content_client/views_content_client_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698