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

Side by Side Diff: ash/wm/frame_painter.h

Issue 24108003: [Cleanup] Rename WindowSettings to WindowState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase fix Created 7 years, 3 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 | « ash/wm/drag_window_resizer.cc ('k') | ash/wm/frame_painter.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ASH_WM_FRAME_PAINTER_H_ 5 #ifndef ASH_WM_FRAME_PAINTER_H_
6 #define ASH_WM_FRAME_PAINTER_H_ 6 #define ASH_WM_FRAME_PAINTER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/window_settings.h" 9 #include "ash/wm/window_state.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" // OVERRIDE 11 #include "base/compiler_specific.h" // OVERRIDE
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "ui/aura/window_observer.h" 14 #include "ui/aura/window_observer.h"
15 #include "ui/gfx/animation/animation_delegate.h" 15 #include "ui/gfx/animation/animation_delegate.h"
16 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
17 17
18 namespace aura { 18 namespace aura {
19 class RootWindow; 19 class RootWindow;
(...skipping 14 matching lines...) Expand all
34 } 34 }
35 35
36 namespace ash { 36 namespace ash {
37 class FrameCaptionButtonContainerView; 37 class FrameCaptionButtonContainerView;
38 38
39 // Helper class for painting window frames. Exists to share code between 39 // Helper class for painting window frames. Exists to share code between
40 // various implementations of views::NonClientFrameView. Canonical source of 40 // various implementations of views::NonClientFrameView. Canonical source of
41 // layout constants for Ash window frames. 41 // layout constants for Ash window frames.
42 class ASH_EXPORT FramePainter : public aura::WindowObserver, 42 class ASH_EXPORT FramePainter : public aura::WindowObserver,
43 public gfx::AnimationDelegate, 43 public gfx::AnimationDelegate,
44 public wm::WindowSettings::Observer { 44 public wm::WindowState::Observer {
45 public: 45 public:
46 // Opacity values for the window header in various states, from 0 to 255. 46 // Opacity values for the window header in various states, from 0 to 255.
47 static int kActiveWindowOpacity; 47 static int kActiveWindowOpacity;
48 static int kInactiveWindowOpacity; 48 static int kInactiveWindowOpacity;
49 static int kSoloWindowOpacity; 49 static int kSoloWindowOpacity;
50 50
51 enum HeaderMode { 51 enum HeaderMode {
52 ACTIVE, 52 ACTIVE,
53 INACTIVE 53 INACTIVE
54 }; 54 };
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 gfx::Rect header_frame_bounds_; 238 gfx::Rect header_frame_bounds_;
239 scoped_ptr<gfx::SlideAnimation> crossfade_animation_; 239 scoped_ptr<gfx::SlideAnimation> crossfade_animation_;
240 240
241 DISALLOW_COPY_AND_ASSIGN(FramePainter); 241 DISALLOW_COPY_AND_ASSIGN(FramePainter);
242 }; 242 };
243 243
244 } // namespace ash 244 } // namespace ash
245 245
246 #endif // ASH_WM_FRAME_PAINTER_H_ 246 #endif // ASH_WM_FRAME_PAINTER_H_
OLDNEW
« no previous file with comments | « ash/wm/drag_window_resizer.cc ('k') | ash/wm/frame_painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698