Chromium Code Reviews| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 163 | 163 |
| 164 virtual void BeforeUnloadFired(TabContents* tab, | 164 virtual void BeforeUnloadFired(TabContents* tab, |
| 165 bool proceed, | 165 bool proceed, |
| 166 bool* proceed_to_fire_unload); | 166 bool* proceed_to_fire_unload); |
| 167 | 167 |
| 168 void ShowRepostFormWarningDialog(TabContents* tab_contents); | 168 void ShowRepostFormWarningDialog(TabContents* tab_contents); |
| 169 | 169 |
| 170 void RegisterRenderViewHost(RenderViewHost* render_view_host); | 170 void RegisterRenderViewHost(RenderViewHost* render_view_host); |
| 171 void UnregisterRenderViewHost(RenderViewHost* render_view_host); | 171 void UnregisterRenderViewHost(RenderViewHost* render_view_host); |
| 172 | 172 |
| 173 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator( | |
|
jam
2011/06/03 00:21:45
this should be with the other TabContentsDelegate
| |
| 174 ) OVERRIDE; | |
|
jam
2011/06/03 00:21:45
nit: this seems awkward to read. do you think it'
| |
| 175 | |
| 173 // Overridden from TabContentsObserver: | 176 // Overridden from TabContentsObserver: |
| 174 // IPC::Channel::Listener implementation. | 177 // IPC::Channel::Listener implementation. |
| 175 virtual bool OnMessageReceived(const IPC::Message& message); | 178 virtual bool OnMessageReceived(const IPC::Message& message); |
| 176 | 179 |
| 177 // Message handlers | 180 // Message handlers |
| 178 void OnForwardMessageToExternalHost(const std::string& message, | 181 void OnForwardMessageToExternalHost(const std::string& message, |
| 179 const std::string& origin, | 182 const std::string& origin, |
| 180 const std::string& target); | 183 const std::string& target); |
| 181 | 184 |
| 182 // Overridden from NotificationObserver: | 185 // Overridden from NotificationObserver: |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 409 return false; | 412 return false; |
| 410 } | 413 } |
| 411 | 414 |
| 412 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, | 415 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, |
| 413 bool* proceed_to_fire_unload) { | 416 bool* proceed_to_fire_unload) { |
| 414 NOTREACHED(); | 417 NOTREACHED(); |
| 415 } | 418 } |
| 416 }; | 419 }; |
| 417 | 420 |
| 418 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ | 421 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ |
| OLD | NEW |