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

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

Issue 6975037: Revert 85666 - 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
38 // Returns the smallest size the window can be resized to by the user. 42 // Returns the smallest size the window can be resized to by the user.
39 virtual gfx::Size GetMinimumSize() const = 0; 43 virtual gfx::Size GetMinimumSize() const = 0;
40 44
41 // Returns the non-client component (see views/window/hit_test.h) containing 45 // Returns the non-client component (see views/window/hit_test.h) containing
42 // |point|, in client coordinates. 46 // |point|, in client coordinates.
43 virtual int GetNonClientComponent(const gfx::Point& point) const = 0; 47 virtual int GetNonClientComponent(const gfx::Point& point) const = 0;
44 48
45 // Runs the specified native command. Returns true if the command is handled. 49 // Runs the specified native command. Returns true if the command is handled.
46 virtual bool ExecuteCommand(int command_id) = 0; 50 virtual bool ExecuteCommand(int command_id) = 0;
47 51
(...skipping 21 matching lines...) Expand all
69 virtual Window* AsWindow() = 0; 73 virtual Window* AsWindow() = 0;
70 74
71 // 75 //
72 virtual NativeWidgetDelegate* AsNativeWidgetDelegate() = 0; 76 virtual NativeWidgetDelegate* AsNativeWidgetDelegate() = 0;
73 }; 77 };
74 78
75 } // namespace internal 79 } // namespace internal
76 } // namespace views 80 } // namespace views
77 81
78 #endif // VIEWS_WIDGET_NATIVE_WINDOW_DELEGATE_H_ 82 #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