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

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

Issue 8552005: views: Move views/window/ to ui/views/window directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/window/dialog_delegate.cc ('k') | views/window/native_frame_view.cc » ('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_WINDOW_NATIVE_FRAME_VIEW_H_ 5 #ifndef VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_
6 #define VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_ 6 #define VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "views/window/non_client_view.h" 9 #include "ui/views/window/native_frame_view.h"
10 // TODO(tfarina): remove this file once all includes have been updated.
10 11
11 namespace views { 12 #endif // VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_
12
13 class Widget;
14
15 class VIEWS_EXPORT NativeFrameView : public NonClientFrameView {
16 public:
17 explicit NativeFrameView(Widget* frame);
18 virtual ~NativeFrameView();
19
20 // NonClientFrameView overrides:
21 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
22 virtual gfx::Rect GetWindowBoundsForClientBounds(
23 const gfx::Rect& client_bounds) const OVERRIDE;
24 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
25 virtual void GetWindowMask(const gfx::Size& size,
26 gfx::Path* window_mask) OVERRIDE;
27 virtual void EnableClose(bool enable) OVERRIDE;
28 virtual void ResetWindowControls() OVERRIDE;
29 virtual void UpdateWindowIcon() OVERRIDE;
30
31 // View overrides:
32
33 // Returns the client size. On Windows, this is the expected behavior for
34 // native frames (see |NativeWidgetWin::WidgetSizeIsClientSize()|), while
35 // other platforms currently always return client bounds from
36 // |GetWindowBoundsForClientBounds()|.
37 virtual gfx::Size GetPreferredSize() OVERRIDE;
38
39 private:
40 // Our containing frame.
41 Widget* frame_;
42
43 DISALLOW_COPY_AND_ASSIGN(NativeFrameView);
44 };
45
46 } // namespace views
47
48 #endif // #ifndef VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « views/window/dialog_delegate.cc ('k') | views/window/native_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698