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

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

Issue 11819008: Refactors building the system menu model into a common place (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to trunk and fix windows build Created 7 years, 11 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 | Annotate | Revision Log
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_desktop_root_window_host_linux.h " 5 #include "chrome/browser/ui/views/frame/browser_desktop_root_window_host_linux.h "
6 6
7 //////////////////////////////////////////////////////////////////////////////// 7 ////////////////////////////////////////////////////////////////////////////////
8 // BrowserDesktopRootWindowHostLinux, public: 8 // BrowserDesktopRootWindowHostLinux, public:
9 9
10 BrowserDesktopRootWindowHostLinux::BrowserDesktopRootWindowHostLinux( 10 BrowserDesktopRootWindowHostLinux::BrowserDesktopRootWindowHostLinux(
(...skipping 14 matching lines...) Expand all
25 25
26 views::DesktopRootWindowHost* 26 views::DesktopRootWindowHost*
27 BrowserDesktopRootWindowHostLinux::AsDesktopRootWindowHost() { 27 BrowserDesktopRootWindowHostLinux::AsDesktopRootWindowHost() {
28 return this; 28 return this;
29 } 29 }
30 30
31 int BrowserDesktopRootWindowHostLinux::GetMinimizeButtonOffset() const { 31 int BrowserDesktopRootWindowHostLinux::GetMinimizeButtonOffset() const {
32 return 0; 32 return 0;
33 } 33 }
34 34
35 bool BrowserDesktopRootWindowHostLinux::UsesNativeSystemMenu() const {
36 return false;
37 }
38
35 //////////////////////////////////////////////////////////////////////////////// 39 ////////////////////////////////////////////////////////////////////////////////
36 // BrowserDesktopRootWindowHost, public: 40 // BrowserDesktopRootWindowHost, public:
37 41
38 // static 42 // static
39 BrowserDesktopRootWindowHost* 43 BrowserDesktopRootWindowHost*
40 BrowserDesktopRootWindowHost::CreateBrowserDesktopRootWindowHost( 44 BrowserDesktopRootWindowHost::CreateBrowserDesktopRootWindowHost(
41 views::internal::NativeWidgetDelegate* native_widget_delegate, 45 views::internal::NativeWidgetDelegate* native_widget_delegate,
42 views::DesktopNativeWidgetAura* desktop_native_widget_aura, 46 views::DesktopNativeWidgetAura* desktop_native_widget_aura,
43 const gfx::Rect& initial_bounds, 47 const gfx::Rect& initial_bounds,
44 BrowserView* browser_view, 48 BrowserView* browser_view,
45 BrowserFrame* browser_frame) { 49 BrowserFrame* browser_frame) {
46 return new BrowserDesktopRootWindowHostLinux(native_widget_delegate, 50 return new BrowserDesktopRootWindowHostLinux(native_widget_delegate,
47 desktop_native_widget_aura, 51 desktop_native_widget_aura,
48 initial_bounds); 52 initial_bounds);
49 } 53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698