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_EXTERNAL_TAB_CONTAINER_WIN_H_ | 5 #ifndef CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ |
6 #define CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ | 6 #define CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 virtual void Observe(NotificationType type, | 180 virtual void Observe(NotificationType type, |
181 const NotificationSource& source, | 181 const NotificationSource& source, |
182 const NotificationDetails& details); | 182 const NotificationDetails& details); |
183 | 183 |
184 // Returns the ExternalTabContainer instance associated with the cookie | 184 // Returns the ExternalTabContainer instance associated with the cookie |
185 // passed in. It also erases the corresponding reference from the map. | 185 // passed in. It also erases the corresponding reference from the map. |
186 // Returns NULL if we fail to find the cookie in the map. | 186 // Returns NULL if we fail to find the cookie in the map. |
187 static scoped_refptr<ExternalTabContainer> RemovePendingTab(uintptr_t cookie); | 187 static scoped_refptr<ExternalTabContainer> RemovePendingTab(uintptr_t cookie); |
188 | 188 |
189 // Overridden from views::WidgetWin: | 189 // Overridden from views::WidgetWin: |
190 virtual views::Window* GetContainingWindow() OVERRIDE; | 190 virtual views::Window* GetWindow(); |
191 virtual const views::Window* GetContainingWindow() const OVERRIDE; | |
192 | 191 |
193 // Handles the specified |accelerator| being pressed. | 192 // Handles the specified |accelerator| being pressed. |
194 bool AcceleratorPressed(const views::Accelerator& accelerator); | 193 bool AcceleratorPressed(const views::Accelerator& accelerator); |
195 | 194 |
196 bool pending() const { | 195 bool pending() const { |
197 return pending_; | 196 return pending_; |
198 } | 197 } |
199 | 198 |
200 void set_pending(bool pending) { | 199 void set_pending(bool pending) { |
201 pending_ = pending; | 200 pending_ = pending; |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 return false; | 401 return false; |
403 } | 402 } |
404 | 403 |
405 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, | 404 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, |
406 bool* proceed_to_fire_unload) { | 405 bool* proceed_to_fire_unload) { |
407 NOTREACHED(); | 406 NOTREACHED(); |
408 } | 407 } |
409 }; | 408 }; |
410 | 409 |
411 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ | 410 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ |
OLD | NEW |