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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual void SizeContents(const gfx::Size& size); | 47 virtual void SizeContents(const gfx::Size& size); |
48 virtual void Focus(); | 48 virtual void Focus(); |
49 virtual void SetInitialFocus(); | 49 virtual void SetInitialFocus(); |
50 virtual void StoreFocus(); | 50 virtual void StoreFocus(); |
51 virtual void RestoreFocus(); | 51 virtual void RestoreFocus(); |
52 virtual bool IsDoingDrag() const; | 52 virtual bool IsDoingDrag() const; |
53 virtual void CancelDragAndCloseTab(); | 53 virtual void CancelDragAndCloseTab(); |
54 | 54 |
55 // Backend implementation of RenderViewHostDelegate::View. | 55 // Backend implementation of RenderViewHostDelegate::View. |
56 virtual void ShowContextMenu(const ContextMenuParams& params); | 56 virtual void ShowContextMenu(const ContextMenuParams& params); |
57 virtual void StartDragging(const WebDropData& drop_data); | 57 virtual void StartDragging(const WebDropData& drop_data, |
58 virtual void UpdateDragCursor(bool is_drop_target); | 58 WebKit::WebDragOperationsMask operations); |
| 59 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
59 virtual void GotFocus(); | 60 virtual void GotFocus(); |
60 virtual void TakeFocus(bool reverse); | 61 virtual void TakeFocus(bool reverse); |
61 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 62 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
62 | 63 |
63 // WidgetWin overridde. | 64 // WidgetWin overridde. |
64 virtual views::FocusManager* GetFocusManager(); | 65 virtual views::FocusManager* GetFocusManager(); |
65 | 66 |
66 private: | 67 private: |
67 // A helper method for closing the tab. | 68 // A helper method for closing the tab. |
68 void CloseTab(); | 69 void CloseTab(); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // has finished. | 132 // has finished. |
132 bool close_tab_after_drag_ends_; | 133 bool close_tab_after_drag_ends_; |
133 | 134 |
134 // Used to close the tab after the stack has unwound. | 135 // Used to close the tab after the stack has unwound. |
135 base::OneShotTimer<TabContentsViewWin> close_tab_timer_; | 136 base::OneShotTimer<TabContentsViewWin> close_tab_timer_; |
136 | 137 |
137 DISALLOW_COPY_AND_ASSIGN(TabContentsViewWin); | 138 DISALLOW_COPY_AND_ASSIGN(TabContentsViewWin); |
138 }; | 139 }; |
139 | 140 |
140 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ | 141 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ |
OLD | NEW |