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

Side by Side Diff: chrome/browser/ui/views/frame/browser_frame.cc

Issue 2892343002: Do not include x11 files in case of Ozone builds (Closed)
Patch Set: Created 3 years, 7 months 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 | « no previous file | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/ui/views/frame/browser_frame.h" 5 #include "chrome/browser/ui/views/frame/browser_frame.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/leak_annotations.h" 10 #include "base/debug/leak_annotations.h"
(...skipping 22 matching lines...) Expand all
33 #include "ui/views/widget/native_widget.h" 33 #include "ui/views/widget/native_widget.h"
34 34
35 #if defined(OS_CHROMEOS) 35 #if defined(OS_CHROMEOS)
36 #include "components/user_manager/user_manager.h" 36 #include "components/user_manager/user_manager.h"
37 #endif 37 #endif
38 38
39 #if defined(OS_LINUX) 39 #if defined(OS_LINUX)
40 #include "chrome/browser/ui/views/frame/browser_command_handler_linux.h" 40 #include "chrome/browser/ui/views/frame/browser_command_handler_linux.h"
41 #endif 41 #endif
42 42
43 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 43 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(USE_OZONE)
Lei Zhang 2017/05/22 18:20:12 How about just if defined(USE_X11) ?
44 #include "ui/views/widget/desktop_aura/x11_desktop_handler.h" 44 #include "ui/views/widget/desktop_aura/x11_desktop_handler.h"
45 #endif 45 #endif
46 46
47 //////////////////////////////////////////////////////////////////////////////// 47 ////////////////////////////////////////////////////////////////////////////////
48 // BrowserFrame, public: 48 // BrowserFrame, public:
49 49
50 BrowserFrame::BrowserFrame(BrowserView* browser_view) 50 BrowserFrame::BrowserFrame(BrowserView* browser_view)
51 : native_browser_frame_(nullptr), 51 : native_browser_frame_(nullptr),
52 root_view_(nullptr), 52 root_view_(nullptr),
53 browser_frame_view_(nullptr), 53 browser_frame_view_(nullptr),
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 return menu_model_builder_->menu_model(); 277 return menu_model_builder_->menu_model();
278 } 278 }
279 279
280 views::View* BrowserFrame::GetNewAvatarMenuButton() { 280 views::View* BrowserFrame::GetNewAvatarMenuButton() {
281 return browser_frame_view_->GetProfileSwitcherView(); 281 return browser_frame_view_->GetProfileSwitcherView();
282 } 282 }
283 283
284 void BrowserFrame::OnMenuClosed() { 284 void BrowserFrame::OnMenuClosed() {
285 menu_runner_.reset(); 285 menu_runner_.reset();
286 } 286 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698