OLD | NEW |
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_HTML_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 virtual bool ShouldShowDialogTitle() const OVERRIDE; | 78 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
79 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; | 79 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; |
80 | 80 |
81 // Overridden from TabContentsDelegate: | 81 // Overridden from TabContentsDelegate: |
82 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) OVERRIDE; | 82 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) OVERRIDE; |
83 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) | 83 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) |
84 OVERRIDE; | 84 OVERRIDE; |
85 virtual void CloseContents(TabContents* source) OVERRIDE; | 85 virtual void CloseContents(TabContents* source) OVERRIDE; |
86 | 86 |
87 // Overridden from NotificationObserver | 87 // Overridden from NotificationObserver |
88 virtual void Observe(NotificationType type, | 88 virtual void Observe(int type, |
89 const NotificationSource& source, | 89 const NotificationSource& source, |
90 const NotificationDetails& details) OVERRIDE; | 90 const NotificationDetails& details) OVERRIDE; |
91 | 91 |
92 protected: | 92 protected: |
93 // Register accelerators for this dialog. | 93 // Register accelerators for this dialog. |
94 virtual void RegisterDialogAccelerators(); | 94 virtual void RegisterDialogAccelerators(); |
95 | 95 |
96 private: | 96 private: |
97 FRIEND_TEST_ALL_PREFIXES(HtmlDialogBrowserTest, TestStateTransition); | 97 FRIEND_TEST_ALL_PREFIXES(HtmlDialogBrowserTest, TestStateTransition); |
98 | 98 |
(...skipping 15 matching lines...) Expand all Loading... |
114 // closing) we delegate to the creator of this view, which we keep track of | 114 // closing) we delegate to the creator of this view, which we keep track of |
115 // using this variable. | 115 // using this variable. |
116 HtmlDialogUIDelegate* delegate_; | 116 HtmlDialogUIDelegate* delegate_; |
117 | 117 |
118 NotificationRegistrar notification_registrar_; | 118 NotificationRegistrar notification_registrar_; |
119 | 119 |
120 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); | 120 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); |
121 }; | 121 }; |
122 | 122 |
123 #endif // CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ | 123 #endif // CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ |
OLD | NEW |