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

Side by Side Diff: chrome/browser/views/frame/opaque_browser_frame_view.h

Issue 577018: Support app menu and double-click close on upper left corner of window, part ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 10 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
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
7 7
8 #include "chrome/browser/views/frame/browser_frame.h" 8 #include "chrome/browser/views/frame/browser_frame.h"
9 #include "chrome/browser/views/frame/browser_non_client_frame_view.h" 9 #include "chrome/browser/views/frame/browser_non_client_frame_view.h"
10 #include "chrome/browser/views/tab_icon_view.h" 10 #include "chrome/browser/views/tab_icon_view.h"
11 #include "views/controls/button/button.h" 11 #include "views/controls/button/button.h"
(...skipping 24 matching lines...) Expand all
36 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const; 36 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const;
37 virtual void UpdateThrobber(bool running); 37 virtual void UpdateThrobber(bool running);
38 virtual gfx::Size GetMinimumSize(); 38 virtual gfx::Size GetMinimumSize();
39 39
40 protected: 40 protected:
41 // Overridden from views::NonClientFrameView: 41 // Overridden from views::NonClientFrameView:
42 virtual gfx::Rect GetBoundsForClientView() const; 42 virtual gfx::Rect GetBoundsForClientView() const;
43 virtual bool AlwaysUseNativeFrame() const; 43 virtual bool AlwaysUseNativeFrame() const;
44 virtual gfx::Rect GetWindowBoundsForClientBounds( 44 virtual gfx::Rect GetWindowBoundsForClientBounds(
45 const gfx::Rect& client_bounds) const; 45 const gfx::Rect& client_bounds) const;
46 virtual gfx::Point GetSystemMenuPoint() const;
47 virtual int NonClientHitTest(const gfx::Point& point); 46 virtual int NonClientHitTest(const gfx::Point& point);
48 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask); 47 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask);
49 virtual void EnableClose(bool enable); 48 virtual void EnableClose(bool enable);
50 virtual void ResetWindowControls(); 49 virtual void ResetWindowControls();
51 50
52 // Overridden from views::View: 51 // Overridden from views::View:
53 virtual void Paint(gfx::Canvas* canvas); 52 virtual void Paint(gfx::Canvas* canvas);
54 virtual void Layout(); 53 virtual void Layout();
55 virtual bool HitTest(const gfx::Point& l) const; 54 virtual bool HitTest(const gfx::Point& l) const;
56 virtual void ViewHierarchyChanged(bool is_add, 55 virtual void ViewHierarchyChanged(bool is_add,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 155
157 static void InitClass(); 156 static void InitClass();
158 static void InitAppWindowResources(); 157 static void InitAppWindowResources();
159 static SkBitmap* distributor_logo_; 158 static SkBitmap* distributor_logo_;
160 static gfx::Font* title_font_; 159 static gfx::Font* title_font_;
161 160
162 DISALLOW_EVIL_CONSTRUCTORS(OpaqueBrowserFrameView); 161 DISALLOW_EVIL_CONSTRUCTORS(OpaqueBrowserFrameView);
163 }; 162 };
164 163
165 #endif // CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 164 #endif // CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698