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

Side by Side Diff: chrome/browser/ui/views/constrained_window_frame_view.h

Issue 10631010: Change style of ConstrainedWindowViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 8 years, 6 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_VIEW_H_
7 #pragma once
8
9 #include "ui/views/window/non_client_view.h"
10
11 class ConstrainedWindowViews;
12
13 ////////////////////////////////////////////////////////////////////////////////
14 // ConstrainedWindowFrameView
15 // Provides a custom Window frame for ConstrainedWindowViews.
16 // Implements a simple window with a minimal frame.
17 class ConstrainedWindowFrameView : public views::NonClientFrameView {
18 public:
19 explicit ConstrainedWindowFrameView(ConstrainedWindowViews* container);
20
21 // Overridden from views::NonClientFrameView:
22 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
23 virtual gfx::Rect GetWindowBoundsForClientBounds(
24 const gfx::Rect& client_bounds) const OVERRIDE;
25 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
26 virtual void GetWindowMask(const gfx::Size& size,
27 gfx::Path* window_mask) OVERRIDE {}
28 virtual void ResetWindowControls() OVERRIDE {}
29 virtual void UpdateWindowIcon() OVERRIDE {}
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowFrameView);
33 };
34 #endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698