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

Side by Side Diff: chrome/browser/ui/views/frame/app_panel_browser_frame_view.h

Issue 8618001: Get rid of the EnableClose() infrastructure in Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/views/frame/browser_frame.h" 9 #include "chrome/browser/ui/views/frame/browser_frame.h"
10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" 10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
(...skipping 26 matching lines...) Expand all
37 virtual gfx::Size GetMinimumSize() OVERRIDE; 37 virtual gfx::Size GetMinimumSize() OVERRIDE;
38 38
39 protected: 39 protected:
40 // Overridden from views::NonClientFrameView: 40 // Overridden from views::NonClientFrameView:
41 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 41 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
42 virtual gfx::Rect GetWindowBoundsForClientBounds( 42 virtual gfx::Rect GetWindowBoundsForClientBounds(
43 const gfx::Rect& client_bounds) const OVERRIDE; 43 const gfx::Rect& client_bounds) const OVERRIDE;
44 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 44 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
45 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) 45 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask)
46 OVERRIDE; 46 OVERRIDE;
47 virtual void EnableClose(bool enable) OVERRIDE;
48 virtual void ResetWindowControls() OVERRIDE; 47 virtual void ResetWindowControls() OVERRIDE;
49 virtual void UpdateWindowIcon() OVERRIDE; 48 virtual void UpdateWindowIcon() OVERRIDE;
50 49
51 // Overridden from views::View: 50 // Overridden from views::View:
52 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 51 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
53 virtual void Layout() OVERRIDE; 52 virtual void Layout() OVERRIDE;
54 53
55 // Overridden from views::ButtonListener: 54 // Overridden from views::ButtonListener:
56 virtual void ButtonPressed(views::Button* sender, const views::Event& event) 55 virtual void ButtonPressed(views::Button* sender, const views::Event& event)
57 OVERRIDE; 56 OVERRIDE;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // The accessible name of this view. 112 // The accessible name of this view.
114 std::wstring accessible_name_; 113 std::wstring accessible_name_;
115 114
116 static void InitAppWindowResources(); 115 static void InitAppWindowResources();
117 static gfx::Font* title_font_; 116 static gfx::Font* title_font_;
118 117
119 DISALLOW_COPY_AND_ASSIGN(AppPanelBrowserFrameView); 118 DISALLOW_COPY_AND_ASSIGN(AppPanelBrowserFrameView);
120 }; 119 };
121 120
122 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_ 121 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_APP_PANEL_BROWSER_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698