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_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ |
6 #define CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_VIEWS_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 "base/timer.h" | 10 #include "base/timer.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 virtual bool IsDoingDrag() const; | 51 virtual bool IsDoingDrag() const; |
52 virtual void CancelDragAndCloseTab(); | 52 virtual void CancelDragAndCloseTab(); |
53 | 53 |
54 // Backend implementation of RenderViewHostDelegate::View. | 54 // Backend implementation of RenderViewHostDelegate::View. |
55 virtual void ShowContextMenu(const ContextMenuParams& params); | 55 virtual void ShowContextMenu(const ContextMenuParams& params); |
56 virtual void StartDragging(const WebDropData& drop_data, | 56 virtual void StartDragging(const WebDropData& drop_data, |
57 WebKit::WebDragOperationsMask operations); | 57 WebKit::WebDragOperationsMask operations); |
58 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); | 58 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
59 virtual void GotFocus(); | 59 virtual void GotFocus(); |
60 virtual void TakeFocus(bool reverse); | 60 virtual void TakeFocus(bool reverse); |
61 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 61 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
62 | 62 |
63 // WidgetWin overridde. | 63 // WidgetWin overridde. |
64 virtual views::FocusManager* GetFocusManager(); | 64 virtual views::FocusManager* GetFocusManager(); |
65 | 65 |
66 private: | 66 private: |
67 // A helper method for closing the tab. | 67 // A helper method for closing the tab. |
68 void CloseTab(); | 68 void CloseTab(); |
69 | 69 |
70 // Windows events ------------------------------------------------------------ | 70 // Windows events ------------------------------------------------------------ |
71 | 71 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // has finished. | 131 // has finished. |
132 bool close_tab_after_drag_ends_; | 132 bool close_tab_after_drag_ends_; |
133 | 133 |
134 // Used to close the tab after the stack has unwound. | 134 // Used to close the tab after the stack has unwound. |
135 base::OneShotTimer<TabContentsViewWin> close_tab_timer_; | 135 base::OneShotTimer<TabContentsViewWin> close_tab_timer_; |
136 | 136 |
137 DISALLOW_COPY_AND_ASSIGN(TabContentsViewWin); | 137 DISALLOW_COPY_AND_ASSIGN(TabContentsViewWin); |
138 }; | 138 }; |
139 | 139 |
140 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ | 140 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ |
OLD | NEW |