| 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* GetWindow(); | 190 virtual views::Window* GetContainingWindow() OVERRIDE; |
| 191 virtual const views::Window* GetContainingWindow() const OVERRIDE; |
| 191 | 192 |
| 192 // Handles the specified |accelerator| being pressed. | 193 // Handles the specified |accelerator| being pressed. |
| 193 bool AcceleratorPressed(const views::Accelerator& accelerator); | 194 bool AcceleratorPressed(const views::Accelerator& accelerator); |
| 194 | 195 |
| 195 bool pending() const { | 196 bool pending() const { |
| 196 return pending_; | 197 return pending_; |
| 197 } | 198 } |
| 198 | 199 |
| 199 void set_pending(bool pending) { | 200 void set_pending(bool pending) { |
| 200 pending_ = pending; | 201 pending_ = pending; |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 return false; | 402 return false; |
| 402 } | 403 } |
| 403 | 404 |
| 404 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, | 405 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, |
| 405 bool* proceed_to_fire_unload) { | 406 bool* proceed_to_fire_unload) { |
| 406 NOTREACHED(); | 407 NOTREACHED(); |
| 407 } | 408 } |
| 408 }; | 409 }; |
| 409 | 410 |
| 410 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ | 411 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ |
| OLD | NEW |