OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_NOTIFICATIONS_BALLOON_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_NOTIFICATIONS_BALLOON_VIEW_HOST_H_ |
6 #define CHROME_BROWSER_VIEWS_NOTIFICATIONS_BALLOON_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_VIEWS_NOTIFICATIONS_BALLOON_VIEW_HOST_H_ |
7 | 7 |
8 #include "chrome/browser/notifications/balloon.h" | 8 #include "chrome/browser/notifications/balloon.h" |
9 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 9 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
10 #include "chrome/browser/renderer_host/site_instance.h" | 10 #include "chrome/browser/renderer_host/site_instance.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 virtual void TakeFocus(bool reverse) {} | 77 virtual void TakeFocus(bool reverse) {} |
78 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event) { | 78 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event) { |
79 return false; | 79 return false; |
80 } | 80 } |
81 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { | 81 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { |
82 return false; | 82 return false; |
83 } | 83 } |
84 virtual void HandleMouseEvent() {} | 84 virtual void HandleMouseEvent() {} |
85 virtual void HandleMouseLeave() {} | 85 virtual void HandleMouseLeave() {} |
86 virtual void UpdatePreferredSize(const gfx::Size& pref_size); | 86 virtual void UpdatePreferredSize(const gfx::Size& pref_size); |
87 virtual RendererPreferences GetRendererPrefs() const { | 87 virtual RendererPreferences GetRendererPrefs(Profile* profile) const { |
88 return RendererPreferences(); | 88 return RendererPreferences(); |
89 } | 89 } |
90 | 90 |
91 // Accessors. | 91 // Accessors. |
92 RenderViewHost* render_view_host() const { return render_view_host_; } | 92 RenderViewHost* render_view_host() const { return render_view_host_; } |
93 const std::wstring& title() const { return title_; } | 93 const std::wstring& title() const { return title_; } |
94 | 94 |
95 private: | 95 private: |
96 // View overrides. | 96 // View overrides. |
97 virtual void ViewHierarchyChanged(bool is_add, | 97 virtual void ViewHierarchyChanged(bool is_add, |
(...skipping 23 matching lines...) Expand all Loading... |
121 // The title of the balloon page. | 121 // The title of the balloon page. |
122 std::wstring title_; | 122 std::wstring title_; |
123 | 123 |
124 // Common implementations of some RenderViewHostDelegate::View methods. | 124 // Common implementations of some RenderViewHostDelegate::View methods. |
125 RenderViewHostDelegateViewHelper delegate_view_helper_; | 125 RenderViewHostDelegateViewHelper delegate_view_helper_; |
126 | 126 |
127 DISALLOW_COPY_AND_ASSIGN(BalloonViewHost); | 127 DISALLOW_COPY_AND_ASSIGN(BalloonViewHost); |
128 }; | 128 }; |
129 | 129 |
130 #endif // CHROME_BROWSER_VIEWS_NOTIFICATIONS_BALLOON_VIEW_HOST_H_ | 130 #endif // CHROME_BROWSER_VIEWS_NOTIFICATIONS_BALLOON_VIEW_HOST_H_ |
OLD | NEW |