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

Side by Side Diff: chrome/browser/ui/views/frame/browser_desktop_root_window_host.h

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 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_H_
7 7
8 class BrowserFrame; 8 class BrowserFrame;
9 class BrowserView; 9 class BrowserView;
10 namespace gfx { 10 namespace gfx {
(...skipping 15 matching lines...) Expand all
26 static BrowserDesktopRootWindowHost* CreateBrowserDesktopRootWindowHost( 26 static BrowserDesktopRootWindowHost* CreateBrowserDesktopRootWindowHost(
27 views::internal::NativeWidgetDelegate* native_widget_delegate, 27 views::internal::NativeWidgetDelegate* native_widget_delegate,
28 views::DesktopNativeWidgetAura* desktop_native_widget_aura, 28 views::DesktopNativeWidgetAura* desktop_native_widget_aura,
29 const gfx::Rect& initial_bounds, 29 const gfx::Rect& initial_bounds,
30 BrowserView* browser_view, 30 BrowserView* browser_view,
31 BrowserFrame* browser_frame); 31 BrowserFrame* browser_frame);
32 32
33 virtual views::DesktopRootWindowHost* AsDesktopRootWindowHost() = 0; 33 virtual views::DesktopRootWindowHost* AsDesktopRootWindowHost() = 0;
34 34
35 virtual int GetMinimizeButtonOffset() const = 0; 35 virtual int GetMinimizeButtonOffset() const = 0;
36
37 // Returns true if the OS takes care of showing the system menu. Returning
38 // false means BrowserFrame handles showing the system menu.
39 virtual bool UsesNativeSystemMenu() const = 0;
36 }; 40 };
37 41
38 42
39 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_H_ 43 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/views/frame/browser_desktop_root_window_host_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698