| 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 virtual bool IsDoingDrag() const OVERRIDE; | 70 virtual bool IsDoingDrag() const OVERRIDE; |
| 71 virtual void CancelDragAndCloseTab() OVERRIDE; | 71 virtual void CancelDragAndCloseTab() OVERRIDE; |
| 72 virtual WebDropData* GetDropData() const OVERRIDE; | 72 virtual WebDropData* GetDropData() const OVERRIDE; |
| 73 virtual bool IsEventTracking() const OVERRIDE; | 73 virtual bool IsEventTracking() const OVERRIDE; |
| 74 virtual void CloseTabAfterEventTracking() OVERRIDE; | 74 virtual void CloseTabAfterEventTracking() OVERRIDE; |
| 75 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; | 75 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; |
| 76 | 76 |
| 77 // Implementation of RenderViewHostDelegateView. | 77 // Implementation of RenderViewHostDelegateView. |
| 78 virtual void ShowContextMenu( | 78 virtual void ShowContextMenu( |
| 79 const content::ContextMenuParams& params) OVERRIDE; | 79 const content::ContextMenuParams& params) OVERRIDE; |
| 80 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
| 81 int item_height, |
| 82 double item_font_size, |
| 83 int selected_item, |
| 84 const std::vector<WebMenuItem>& items, |
| 85 bool right_aligned, |
| 86 bool allow_multiple_selection) OVERRIDE; |
| 80 virtual void StartDragging(const WebDropData& drop_data, | 87 virtual void StartDragging(const WebDropData& drop_data, |
| 81 WebKit::WebDragOperationsMask operations, | 88 WebKit::WebDragOperationsMask operations, |
| 82 const SkBitmap& image, | 89 const SkBitmap& image, |
| 83 const gfx::Point& image_offset) OVERRIDE; | 90 const gfx::Point& image_offset) OVERRIDE; |
| 84 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; | 91 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; |
| 85 virtual void GotFocus() OVERRIDE; | 92 virtual void GotFocus() OVERRIDE; |
| 86 virtual void TakeFocus(bool reverse) OVERRIDE; | 93 virtual void TakeFocus(bool reverse) OVERRIDE; |
| 87 | 94 |
| 88 WebContentsImpl* web_contents() const { return web_contents_; } | 95 WebContentsImpl* web_contents() const { return web_contents_; } |
| 89 | 96 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // has finished. | 137 // has finished. |
| 131 bool close_tab_after_drag_ends_; | 138 bool close_tab_after_drag_ends_; |
| 132 | 139 |
| 133 // Used to close the tab after the stack has unwound. | 140 // Used to close the tab after the stack has unwound. |
| 134 base::OneShotTimer<WebContentsViewWin> close_tab_timer_; | 141 base::OneShotTimer<WebContentsViewWin> close_tab_timer_; |
| 135 | 142 |
| 136 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); | 143 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); |
| 137 }; | 144 }; |
| 138 | 145 |
| 139 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ | 146 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ |
| OLD | NEW |