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

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

Issue 7067032: Add MenuModelAdapter to wrap ui::MenuModel with views::MenuDelegate interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implemented reviewer recommendations. Created 9 years, 7 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) 2010 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_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
10 #include "build/build_config.h" 11 #include "build/build_config.h"
11 #include "ui/base/accessibility/accessibility_types.h" 12 #include "ui/base/accessibility/accessibility_types.h"
12 #include "views/views_delegate.h" 13 #include "views/views_delegate.h"
13 14
14 namespace views { 15 namespace views {
15 class Window; 16 class Window;
16 } 17 }
17 18
18 class ChromeViewsDelegate : public views::ViewsDelegate { 19 class ChromeViewsDelegate : public views::ViewsDelegate {
19 public: 20 public:
20 ChromeViewsDelegate() {} 21 ChromeViewsDelegate() {}
21 virtual ~ChromeViewsDelegate() {} 22 virtual ~ChromeViewsDelegate() {}
22 23
23 // Overridden from views::ViewsDelegate: 24 // Overridden from views::ViewsDelegate:
24 virtual ui::Clipboard* GetClipboard() const; 25 virtual ui::Clipboard* GetClipboard() const OVERRIDE;
25 virtual void SaveWindowPlacement(views::Window* window, 26 virtual void SaveWindowPlacement(views::Window* window,
26 const std::wstring& window_name, 27 const std::wstring& window_name,
27 const gfx::Rect& bounds, 28 const gfx::Rect& bounds,
28 bool maximized); 29 bool maximized) OVERRIDE;
29 virtual bool GetSavedWindowBounds(views::Window* window, 30 virtual bool GetSavedWindowBounds(views::Window* window,
30 const std::wstring& window_name, 31 const std::wstring& window_name,
31 gfx::Rect* bounds) const; 32 gfx::Rect* bounds) const OVERRIDE;
32 virtual bool GetSavedMaximizedState(views::Window* window, 33 virtual bool GetSavedMaximizedState(views::Window* window,
33 const std::wstring& window_name, 34 const std::wstring& window_name,
34 bool* maximized) const; 35 bool* maximized) const OVERRIDE;
35 virtual void NotifyAccessibilityEvent( 36 virtual void NotifyAccessibilityEvent(
36 views::View* view, ui::AccessibilityTypes::Event event_type); 37 views::View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE;
37 virtual void NotifyMenuItemFocused( 38 virtual void NotifyMenuItemFocused(
38 const std::wstring& menu_name, 39 const std::wstring& menu_name,
39 const std::wstring& menu_item_name, 40 const std::wstring& menu_item_name,
40 int item_index, 41 int item_index,
41 int item_count, 42 int item_count,
42 bool has_submenu); 43 bool has_submenu) OVERRIDE;
43 44
44 #if defined(OS_WIN) 45 #if defined(OS_WIN)
45 virtual HICON GetDefaultWindowIcon() const; 46 virtual HICON GetDefaultWindowIcon() const OVERRIDE;
46 #endif 47 #endif
47 virtual void AddRef(); 48 virtual void AddRef() OVERRIDE;
48 virtual void ReleaseRef(); 49 virtual void ReleaseRef() OVERRIDE;
50
51 virtual int GetDispositionForEvent(int event_flags) OVERRIDE;
49 52
50 private: 53 private:
51 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); 54 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate);
52 }; 55 };
53 56
54 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ 57 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ('k') | chrome/browser/ui/views/chrome_views_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698