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

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

Issue 23625007: Replace kIgnoreSoloWindowFramePointerPolicy with global flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | 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 "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" // OVERRIDE 10 #include "base/compiler_specific.h" // OVERRIDE
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 }; 65 };
66 66
67 FramePainter(); 67 FramePainter();
68 virtual ~FramePainter(); 68 virtual ~FramePainter();
69 69
70 // |frame| and buttons are used for layout and are not owned. 70 // |frame| and buttons are used for layout and are not owned.
71 void Init(views::Widget* frame, 71 void Init(views::Widget* frame,
72 views::View* window_icon, 72 views::View* window_icon,
73 FrameCaptionButtonContainerView* caption_button_container); 73 FrameCaptionButtonContainerView* caption_button_container);
74 74
75 // Enable/Disable the solo-window transparent header appearance feature.
76 static void SetSoloWindowHeadersEnabled(bool enabled);
77
75 // Updates the solo-window transparent header appearance for all windows 78 // Updates the solo-window transparent header appearance for all windows
76 // using frame painters in |root_window|. 79 // using frame painters in |root_window|.
77 static void UpdateSoloWindowHeader(aura::RootWindow* root_window); 80 static void UpdateSoloWindowHeader(aura::RootWindow* root_window);
78 81
79 // Helpers for views::NonClientFrameView implementations. 82 // Helpers for views::NonClientFrameView implementations.
80 gfx::Rect GetBoundsForClientView(int top_height, 83 gfx::Rect GetBoundsForClientView(int top_height,
81 const gfx::Rect& window_bounds) const; 84 const gfx::Rect& window_bounds) const;
82 gfx::Rect GetWindowBoundsForClientBounds( 85 gfx::Rect GetWindowBoundsForClientBounds(
83 int top_height, 86 int top_height,
84 const gfx::Rect& client_bounds) const; 87 const gfx::Rect& client_bounds) const;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 233
231 gfx::Rect header_frame_bounds_; 234 gfx::Rect header_frame_bounds_;
232 scoped_ptr<ui::SlideAnimation> crossfade_animation_; 235 scoped_ptr<ui::SlideAnimation> crossfade_animation_;
233 236
234 DISALLOW_COPY_AND_ASSIGN(FramePainter); 237 DISALLOW_COPY_AND_ASSIGN(FramePainter);
235 }; 238 };
236 239
237 } // namespace ash 240 } // namespace ash
238 241
239 #endif // ASH_WM_FRAME_PAINTER_H_ 242 #endif // ASH_WM_FRAME_PAINTER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/frame_painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698