| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTERNAL_TAB_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_EXTERNAL_TAB_EXTERNAL_TAB_CONTAINER_H_ |
| 6 #define CHROME_BROWSER_EXTERNAL_TAB_EXTERNAL_TAB_CONTAINER_H_ | 6 #define CHROME_BROWSER_EXTERNAL_TAB_EXTERNAL_TAB_CONTAINER_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 virtual content::WebContents* GetWebContents() const = 0; | 82 virtual content::WebContents* GetWebContents() const = 0; |
| 83 | 83 |
| 84 virtual TabContents* GetTabContents() = 0; | 84 virtual TabContents* GetTabContents() = 0; |
| 85 | 85 |
| 86 // This is a wrapper for GetNativeView from ExternalTabContainerWin. | 86 // This is a wrapper for GetNativeView from ExternalTabContainerWin. |
| 87 virtual gfx::NativeView GetExternalTabNativeView() const = 0; | 87 virtual gfx::NativeView GetExternalTabNativeView() const = 0; |
| 88 | 88 |
| 89 virtual void SetTabHandle(int handle) = 0; | 89 virtual void SetTabHandle(int handle) = 0; |
| 90 virtual int GetTabHandle() const = 0; | 90 virtual int GetTabHandle() const = 0; |
| 91 | 91 |
| 92 // Returns true if the context menu command was handled |
| 93 virtual bool ExecuteContextMenuCommand(int command) = 0; |
| 94 |
| 92 protected: | 95 protected: |
| 93 virtual ~ExternalTabContainer() {} | 96 virtual ~ExternalTabContainer() {} |
| 94 | 97 |
| 95 private: | 98 private: |
| 96 friend class base::RefCounted<ExternalTabContainer>; | 99 friend class base::RefCounted<ExternalTabContainer>; |
| 97 }; | 100 }; |
| 98 | 101 |
| 99 #endif // CHROME_BROWSER_EXTERNAL_TAB_EXTERNAL_TAB_CONTAINER_H_ | 102 #endif // CHROME_BROWSER_EXTERNAL_TAB_EXTERNAL_TAB_CONTAINER_H_ |
| OLD | NEW |