| 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 20 matching lines...) Expand all Loading... |
| 31 class RenderViewContextMenuViews; | 31 class RenderViewContextMenuViews; |
| 32 struct NavigationInfo; | 32 struct NavigationInfo; |
| 33 | 33 |
| 34 namespace app { | 34 namespace app { |
| 35 class ViewProp; | 35 class ViewProp; |
| 36 } | 36 } |
| 37 | 37 |
| 38 // This class serves as the container window for an external tab. | 38 // This class serves as the container window for an external tab. |
| 39 // An external tab is a Chrome tab that is meant to displayed in an | 39 // An external tab is a Chrome tab that is meant to displayed in an |
| 40 // external process. This class provides the FocusManger needed by the | 40 // external process. This class provides the FocusManger needed by the |
| 41 // TabContents as well as an implementation of TabContentsDelagate. | 41 // TabContents as well as an implementation of TabContentsDelegate. |
| 42 class ExternalTabContainer : public TabContentsDelegate, | 42 class ExternalTabContainer : public TabContentsDelegate, |
| 43 public NotificationObserver, | 43 public NotificationObserver, |
| 44 public views::WidgetWin, | 44 public views::WidgetWin, |
| 45 public base::RefCounted<ExternalTabContainer>, | 45 public base::RefCounted<ExternalTabContainer>, |
| 46 public views::AcceleratorTarget, | 46 public views::AcceleratorTarget, |
| 47 public InfoBarContainer::Delegate, | 47 public InfoBarContainer::Delegate, |
| 48 public BrowserBubbleHost { | 48 public BrowserBubbleHost { |
| 49 public: | 49 public: |
| 50 typedef std::map<uintptr_t, scoped_refptr<ExternalTabContainer> > PendingTabs; | 50 typedef std::map<uintptr_t, scoped_refptr<ExternalTabContainer> > PendingTabs; |
| 51 | 51 |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 200 |
| 201 bool pending() const { | 201 bool pending() const { |
| 202 return pending_; | 202 return pending_; |
| 203 } | 203 } |
| 204 | 204 |
| 205 void set_pending(bool pending) { | 205 void set_pending(bool pending) { |
| 206 pending_ = pending; | 206 pending_ = pending; |
| 207 } | 207 } |
| 208 | 208 |
| 209 // InfoBarContainer::Delegate overrides | 209 // InfoBarContainer::Delegate overrides |
| 210 virtual void InfoBarSizeChanged(bool is_animating); | 210 virtual void InfoBarContainerSizeChanged(bool is_animating); |
| 211 | 211 |
| 212 virtual void TabContentsCreated(TabContents* new_contents); | 212 virtual void TabContentsCreated(TabContents* new_contents); |
| 213 | 213 |
| 214 virtual bool infobars_enabled(); | 214 virtual bool infobars_enabled(); |
| 215 | 215 |
| 216 void RunUnloadHandlers(IPC::Message* reply_message); | 216 void RunUnloadHandlers(IPC::Message* reply_message); |
| 217 | 217 |
| 218 protected: | 218 protected: |
| 219 ~ExternalTabContainer(); | 219 ~ExternalTabContainer(); |
| 220 // Overridden from views::WidgetWin: | 220 // Overridden from views::WidgetWin: |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 return false; | 399 return false; |
| 400 } | 400 } |
| 401 | 401 |
| 402 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, | 402 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, |
| 403 bool* proceed_to_fire_unload) { | 403 bool* proceed_to_fire_unload) { |
| 404 NOTREACHED(); | 404 NOTREACHED(); |
| 405 } | 405 } |
| 406 }; | 406 }; |
| 407 | 407 |
| 408 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ | 408 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ |
| OLD | NEW |