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

Side by Side Diff: ui/aura_shell/toplevel_frame_view.h

Issue 8618001: Get rid of the EnableClose() infrastructure in Widget. (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 | « chrome/test/base/testing_profile.cc ('k') | ui/aura_shell/toplevel_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 UI_AURA_SHELL_TOPLEVEL_FRAME_VIEW_H_ 5 #ifndef UI_AURA_SHELL_TOPLEVEL_FRAME_VIEW_H_
6 #define UI_AURA_SHELL_TOPLEVEL_FRAME_VIEW_H_ 6 #define UI_AURA_SHELL_TOPLEVEL_FRAME_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/aura_shell/aura_shell_export.h" 9 #include "ui/aura_shell/aura_shell_export.h"
10 #include "ui/views/window/non_client_view.h" 10 #include "ui/views/window/non_client_view.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 gfx::Rect GetHiddenBoundsForSizingBorder(int frame_component) const; 49 gfx::Rect GetHiddenBoundsForSizingBorder(int frame_component) const;
50 gfx::Rect GetVisibleBoundsForSizingBorder(int frame_component) const; 50 gfx::Rect GetVisibleBoundsForSizingBorder(int frame_component) const;
51 51
52 // Overridden from views::NonClientFrameView: 52 // Overridden from views::NonClientFrameView:
53 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 53 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
54 virtual gfx::Rect GetWindowBoundsForClientBounds( 54 virtual gfx::Rect GetWindowBoundsForClientBounds(
55 const gfx::Rect& client_bounds) const OVERRIDE; 55 const gfx::Rect& client_bounds) const OVERRIDE;
56 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 56 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
57 virtual void GetWindowMask(const gfx::Size& size, 57 virtual void GetWindowMask(const gfx::Size& size,
58 gfx::Path* window_mask) OVERRIDE; 58 gfx::Path* window_mask) OVERRIDE;
59 virtual void EnableClose(bool enable) OVERRIDE;
60 virtual void ResetWindowControls() OVERRIDE; 59 virtual void ResetWindowControls() OVERRIDE;
61 virtual void UpdateWindowIcon() OVERRIDE; 60 virtual void UpdateWindowIcon() OVERRIDE;
62 61
63 // Overridden from views::View: 62 // Overridden from views::View:
64 virtual void Layout() OVERRIDE; 63 virtual void Layout() OVERRIDE;
65 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; 64 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE;
66 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; 65 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE;
67 virtual views::View* GetEventHandlerForPoint( 66 virtual views::View* GetEventHandlerForPoint(
68 const gfx::Point& point) OVERRIDE; 67 const gfx::Point& point) OVERRIDE;
69 virtual gfx::NativeCursor GetCursor(const views::MouseEvent& event) OVERRIDE; 68 virtual gfx::NativeCursor GetCursor(const views::MouseEvent& event) OVERRIDE;
70 69
71 gfx::Rect client_view_bounds_; 70 gfx::Rect client_view_bounds_;
72 71
73 int current_hittest_code_; 72 int current_hittest_code_;
74 73
75 WindowCaption* caption_; 74 WindowCaption* caption_;
76 SizingBorder* left_edge_; 75 SizingBorder* left_edge_;
77 SizingBorder* right_edge_; 76 SizingBorder* right_edge_;
78 SizingBorder* bottom_edge_; 77 SizingBorder* bottom_edge_;
79 78
80 DISALLOW_COPY_AND_ASSIGN(ToplevelFrameView); 79 DISALLOW_COPY_AND_ASSIGN(ToplevelFrameView);
81 }; 80 };
82 81
83 } // namespace internal 82 } // namespace internal
84 } // namespace aura_shell 83 } // namespace aura_shell
85 84
86 #endif // #ifndef UI_AURA_SHELL_TOPLEVEL_FRAME_VIEW_H_ 85 #endif // #ifndef UI_AURA_SHELL_TOPLEVEL_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | ui/aura_shell/toplevel_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698