| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ |
| 7 | 7 |
| 8 #include "base/gfx/size.h" | 8 #include "base/gfx/size.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "chrome/browser/tab_contents/tab_contents_view.h" | 10 #include "chrome/browser/tab_contents/tab_contents_view.h" |
| 11 #include "views/widget/widget_win.h" | 11 #include "views/widget/widget_win.h" |
| 12 | 12 |
| 13 class RenderViewContextMenuWin; |
| 13 class SadTabView; | 14 class SadTabView; |
| 14 struct WebDropData; | 15 struct WebDropData; |
| 15 class WebDropTarget; | 16 class WebDropTarget; |
| 16 | 17 |
| 17 | |
| 18 // Windows-specific implementation of the TabContentsView. It is a HWND that | 18 // Windows-specific implementation of the TabContentsView. It is a HWND that |
| 19 // contains all of the contents of the tab and associated child views. | 19 // contains all of the contents of the tab and associated child views. |
| 20 class TabContentsViewWin : public TabContentsView, | 20 class TabContentsViewWin : public TabContentsView, |
| 21 public views::WidgetWin { | 21 public views::WidgetWin { |
| 22 public: | 22 public: |
| 23 // The corresponding TabContents is passed in the constructor, and manages our | 23 // The corresponding TabContents is passed in the constructor, and manages our |
| 24 // lifetime. This doesn't need to be the case, but is this way currently | 24 // lifetime. This doesn't need to be the case, but is this way currently |
| 25 // because that's what was easiest when they were split. | 25 // because that's what was easiest when they were split. |
| 26 explicit TabContentsViewWin(TabContents* tab_contents); | 26 explicit TabContentsViewWin(TabContents* tab_contents); |
| 27 virtual ~TabContentsViewWin(); | 27 virtual ~TabContentsViewWin(); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // Used to render the sad tab. This will be non-NULL only when the sad tab is | 94 // Used to render the sad tab. This will be non-NULL only when the sad tab is |
| 95 // visible. | 95 // visible. |
| 96 scoped_ptr<SadTabView> sad_tab_; | 96 scoped_ptr<SadTabView> sad_tab_; |
| 97 | 97 |
| 98 // Whether to ignore the next CHAR keyboard event. | 98 // Whether to ignore the next CHAR keyboard event. |
| 99 bool ignore_next_char_event_; | 99 bool ignore_next_char_event_; |
| 100 | 100 |
| 101 // The id used in the ViewStorage to store the last focused view. | 101 // The id used in the ViewStorage to store the last focused view. |
| 102 int last_focused_view_storage_id_; | 102 int last_focused_view_storage_id_; |
| 103 | 103 |
| 104 // The context menu. Callbacks are asynchronous so we need to keep it around. |
| 105 scoped_ptr<RenderViewContextMenuWin> context_menu_; |
| 106 |
| 104 DISALLOW_COPY_AND_ASSIGN(TabContentsViewWin); | 107 DISALLOW_COPY_AND_ASSIGN(TabContentsViewWin); |
| 105 }; | 108 }; |
| 106 | 109 |
| 107 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ | 110 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ |
| OLD | NEW |