| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "base/timer.h" | 10 #include "base/timer.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 virtual void SizeContents(const gfx::Size& size); | 52 virtual void SizeContents(const gfx::Size& size); |
| 53 virtual void Focus(); | 53 virtual void Focus(); |
| 54 virtual void SetInitialFocus(); | 54 virtual void SetInitialFocus(); |
| 55 virtual void StoreFocus(); | 55 virtual void StoreFocus(); |
| 56 virtual void RestoreFocus(); | 56 virtual void RestoreFocus(); |
| 57 virtual bool IsDoingDrag() const; | 57 virtual bool IsDoingDrag() const; |
| 58 virtual void CancelDragAndCloseTab(); | 58 virtual void CancelDragAndCloseTab(); |
| 59 | 59 |
| 60 // Backend implementation of RenderViewHostDelegate::View. | 60 // Backend implementation of RenderViewHostDelegate::View. |
| 61 virtual void ShowContextMenu(const ContextMenuParams& params); | 61 virtual void ShowContextMenu(const ContextMenuParams& params); |
| 62 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
| 63 int item_height, |
| 64 double item_font_size, |
| 65 int selected_item, |
| 66 const std::vector<WebMenuItem>& items, |
| 67 bool right_aligned); |
| 62 virtual void StartDragging(const WebDropData& drop_data, | 68 virtual void StartDragging(const WebDropData& drop_data, |
| 63 WebKit::WebDragOperationsMask operations, | 69 WebKit::WebDragOperationsMask operations, |
| 64 const SkBitmap& image, | 70 const SkBitmap& image, |
| 65 const gfx::Point& image_offset); | 71 const gfx::Point& image_offset); |
| 66 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); | 72 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
| 67 virtual void GotFocus(); | 73 virtual void GotFocus(); |
| 68 virtual void TakeFocus(bool reverse); | 74 virtual void TakeFocus(bool reverse); |
| 69 | 75 |
| 70 // WidgetWin overridde. | 76 // WidgetWin overridde. |
| 71 virtual views::FocusManager* GetFocusManager(); | 77 virtual views::FocusManager* GetFocusManager(); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 // Used to close the tab after the stack has unwound. | 143 // Used to close the tab after the stack has unwound. |
| 138 base::OneShotTimer<TabContentsViewWin> close_tab_timer_; | 144 base::OneShotTimer<TabContentsViewWin> close_tab_timer_; |
| 139 | 145 |
| 140 // Used to handle the drag-and-drop. | 146 // Used to handle the drag-and-drop. |
| 141 scoped_refptr<TabContentsDragWin> drag_handler_; | 147 scoped_refptr<TabContentsDragWin> drag_handler_; |
| 142 | 148 |
| 143 DISALLOW_COPY_AND_ASSIGN(TabContentsViewWin); | 149 DISALLOW_COPY_AND_ASSIGN(TabContentsViewWin); |
| 144 }; | 150 }; |
| 145 | 151 |
| 146 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ | 152 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ |
| OLD | NEW |