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

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

Issue 10631010: Change style of ConstrainedWindowViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extra "private" Created 8 years, 5 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_SIMPLE_H_
6 #define CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_SIMPLE_H_
7
8 #include "ui/views/window/non_client_view.h"
9
10 class ConstrainedWindowViews;
11
12 ////////////////////////////////////////////////////////////////////////////////
13 // ConstrainedWindowFrameView
14 // Provides a custom Window frame for ConstrainedWindowViews.
15 // Implements a simple window with a minimal frame.
16 class ConstrainedWindowFrameSimple : public views::NonClientFrameView {
17 public:
18 explicit ConstrainedWindowFrameSimple(ConstrainedWindowViews* container);
19 virtual ~ConstrainedWindowFrameSimple() {}
20
21 private:
22 // Overridden from views::NonClientFrameView:
23 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
24 virtual gfx::Rect GetWindowBoundsForClientBounds(
25 const gfx::Rect& client_bounds) const OVERRIDE;
26 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
27 virtual void GetWindowMask(const gfx::Size& size,
28 gfx::Path* window_mask) OVERRIDE {}
29 virtual void ResetWindowControls() OVERRIDE {}
30 virtual void UpdateWindowIcon() OVERRIDE {}
31
32 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowFrameSimple);
33 };
34 #endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_SIMPLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/ui/views/constrained_window_frame_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698