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

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

Issue 7015051: Re-land: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_NATIVE_BROWSER_FRAME_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_
7 #pragma once 7 #pragma once
8 8
9 class BrowserNonClientFrameView; 9 class BrowserView;
10
11 namespace gfx {
12 class Rect;
13 }
14
15 namespace ui {
16 class ThemeProvider;
17 }
18
19 namespace views {
20 class NativeWindow;
21 class View;
22 }
23 10
24 class NativeBrowserFrame { 11 class NativeBrowserFrame {
25 public: 12 public:
26 virtual ~NativeBrowserFrame() {} 13 virtual ~NativeBrowserFrame() {}
27 14
15 // Construct a platform-specific implementation of this interface.
16 static NativeBrowserFrame* CreateNativeBrowserFrame(
17 BrowserFrame* browser_frame,
18 BrowserView* browser_view);
19
28 virtual views::NativeWindow* AsNativeWindow() = 0; 20 virtual views::NativeWindow* AsNativeWindow() = 0;
29 virtual const views::NativeWindow* AsNativeWindow() const = 0; 21 virtual const views::NativeWindow* AsNativeWindow() const = 0;
30 22
31 protected: 23 protected:
32 friend class BrowserFrame; 24 friend class BrowserFrame;
33 25
34 virtual BrowserNonClientFrameView* CreateBrowserNonClientFrameView() = 0;
35
36 // BrowserFrame pass-thrus --------------------------------------------------- 26 // BrowserFrame pass-thrus ---------------------------------------------------
37 // See browser_frame.h for documentation: 27 // See browser_frame.h for documentation:
38 virtual int GetMinimizeButtonOffset() const = 0; 28 virtual int GetMinimizeButtonOffset() const = 0;
39 virtual ui::ThemeProvider* GetThemeProviderForFrame() const = 0; 29 // TODO(beng): replace with some kind of "framechanged" signal to Window.
40 virtual bool AlwaysUseNativeFrame() const = 0;
41 virtual void TabStripDisplayModeChanged() = 0; 30 virtual void TabStripDisplayModeChanged() = 0;
42 }; 31 };
43 32
44 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_ 33 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698