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

Side by Side Diff: views/window/native_window_delegate.h

Issue 7036014: Consolidate ShouldUseNativeFrame/AlwaysUseNativeFrame/UseNativeFrame spaghetti. (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
« no previous file with comments | « views/widget/widget_win.cc ('k') | views/window/non_client_view.h » ('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) 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 VIEWS_WIDGET_NATIVE_WINDOW_DELEGATE_H_ 5 #ifndef VIEWS_WIDGET_NATIVE_WINDOW_DELEGATE_H_
6 #define VIEWS_WIDGET_NATIVE_WINDOW_DELEGATE_H_ 6 #define VIEWS_WIDGET_NATIVE_WINDOW_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 namespace ui { 9 namespace ui {
10 class ThemeProvider; 10 class ThemeProvider;
(...skipping 17 matching lines...) Expand all
28 28
29 virtual bool IsInactiveRenderingDisabled() const = 0; 29 virtual bool IsInactiveRenderingDisabled() const = 0;
30 virtual void EnableInactiveRendering() = 0; 30 virtual void EnableInactiveRendering() = 0;
31 31
32 // Returns true if the window is modal. 32 // Returns true if the window is modal.
33 virtual bool IsModal() const = 0; 33 virtual bool IsModal() const = 0;
34 34
35 // Returns true if the window is a dialog box. 35 // Returns true if the window is a dialog box.
36 virtual bool IsDialogBox() const = 0; 36 virtual bool IsDialogBox() const = 0;
37 37
38 // Returns true if the window is using a system native frame. Returns false if
39 // it is rendering its own title bar, borders and controls.
40 virtual bool IsUsingNativeFrame() const = 0;
41
42 // Returns the smallest size the window can be resized to by the user. 38 // Returns the smallest size the window can be resized to by the user.
43 virtual gfx::Size GetMinimumSize() const = 0; 39 virtual gfx::Size GetMinimumSize() const = 0;
44 40
45 // Returns the non-client component (see views/window/hit_test.h) containing 41 // Returns the non-client component (see views/window/hit_test.h) containing
46 // |point|, in client coordinates. 42 // |point|, in client coordinates.
47 virtual int GetNonClientComponent(const gfx::Point& point) const = 0; 43 virtual int GetNonClientComponent(const gfx::Point& point) const = 0;
48 44
49 // Runs the specified native command. Returns true if the command is handled. 45 // Runs the specified native command. Returns true if the command is handled.
50 virtual bool ExecuteCommand(int command_id) = 0; 46 virtual bool ExecuteCommand(int command_id) = 0;
51 47
(...skipping 21 matching lines...) Expand all
73 virtual Window* AsWindow() = 0; 69 virtual Window* AsWindow() = 0;
74 70
75 // 71 //
76 virtual NativeWidgetDelegate* AsNativeWidgetDelegate() = 0; 72 virtual NativeWidgetDelegate* AsNativeWidgetDelegate() = 0;
77 }; 73 };
78 74
79 } // namespace internal 75 } // namespace internal
80 } // namespace views 76 } // namespace views
81 77
82 #endif // VIEWS_WIDGET_NATIVE_WINDOW_DELEGATE_H_ 78 #endif // VIEWS_WIDGET_NATIVE_WINDOW_DELEGATE_H_
OLDNEW
« no previous file with comments | « views/widget/widget_win.cc ('k') | views/window/non_client_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698