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

Side by Side Diff: chrome/browser/views/chrome_views_delegate.h

Issue 1664001: Fixes possible crash if the window hosting a menu was closed while the (Closed)
Patch Set: Incorporated review feedback Created 10 years, 8 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_
6 #define CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_ 6 #define CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "views/views_delegate.h" 9 #include "views/views_delegate.h"
10 10
11 class ChromeViewsDelegate : public views::ViewsDelegate { 11 class ChromeViewsDelegate : public views::ViewsDelegate {
12 public: 12 public:
13 ChromeViewsDelegate() {} 13 ChromeViewsDelegate() {}
14 virtual ~ChromeViewsDelegate() {} 14 virtual ~ChromeViewsDelegate() {}
15 15
16 // Overridden from views::ViewsDelegate: 16 // Overridden from views::ViewsDelegate:
17 virtual Clipboard* GetClipboard() const; 17 virtual Clipboard* GetClipboard() const;
18 virtual void SaveWindowPlacement(const std::wstring& window_name, 18 virtual void SaveWindowPlacement(const std::wstring& window_name,
19 const gfx::Rect& bounds, 19 const gfx::Rect& bounds,
20 bool maximized); 20 bool maximized);
21 virtual bool GetSavedWindowBounds(const std::wstring& window_name, 21 virtual bool GetSavedWindowBounds(const std::wstring& window_name,
22 gfx::Rect* bounds) const; 22 gfx::Rect* bounds) const;
23 virtual bool GetSavedMaximizedState(const std::wstring& window_name, 23 virtual bool GetSavedMaximizedState(const std::wstring& window_name,
24 bool* maximized) const; 24 bool* maximized) const;
25 #if defined(OS_WIN) 25 #if defined(OS_WIN)
26 virtual HICON GetDefaultWindowIcon() const; 26 virtual HICON GetDefaultWindowIcon() const;
27 #endif 27 #endif
28 virtual void AddRef();
29 virtual void ReleaseRef();
28 30
29 private: 31 private:
30 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); 32 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate);
31 }; 33 };
32 34
33 #endif // CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_ 35 #endif // CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/bookmark_bar_view_test.cc ('k') | chrome/browser/views/chrome_views_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698