| 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 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/timer.h" | 10 #include "base/timer.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 81 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
| 82 int item_height, | 82 int item_height, |
| 83 double item_font_size, | 83 double item_font_size, |
| 84 int selected_item, | 84 int selected_item, |
| 85 const std::vector<WebMenuItem>& items, | 85 const std::vector<WebMenuItem>& items, |
| 86 bool right_aligned, | 86 bool right_aligned, |
| 87 bool allow_multiple_selection) OVERRIDE; | 87 bool allow_multiple_selection) OVERRIDE; |
| 88 virtual void StartDragging(const WebDropData& drop_data, | 88 virtual void StartDragging(const WebDropData& drop_data, |
| 89 WebKit::WebDragOperationsMask operations, | 89 WebKit::WebDragOperationsMask operations, |
| 90 const gfx::ImageSkia& image, | 90 const gfx::ImageSkia& image, |
| 91 const gfx::Point& image_offset) OVERRIDE; | 91 const gfx::Vector2d& image_offset) OVERRIDE; |
| 92 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; | 92 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; |
| 93 virtual void GotFocus() OVERRIDE; | 93 virtual void GotFocus() OVERRIDE; |
| 94 virtual void TakeFocus(bool reverse) OVERRIDE; | 94 virtual void TakeFocus(bool reverse) OVERRIDE; |
| 95 | 95 |
| 96 WebContentsImpl* web_contents() const { return web_contents_; } | 96 WebContentsImpl* web_contents() const { return web_contents_; } |
| 97 | 97 |
| 98 private: | 98 private: |
| 99 void EndDragging(); | 99 void EndDragging(); |
| 100 void CloseTab(); | 100 void CloseTab(); |
| 101 | 101 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 scoped_refptr<WebContentsDragWin> drag_handler_; | 137 scoped_refptr<WebContentsDragWin> drag_handler_; |
| 138 | 138 |
| 139 scoped_ptr<ui::HWNDMessageFilter> hwnd_message_filter_; | 139 scoped_ptr<ui::HWNDMessageFilter> hwnd_message_filter_; |
| 140 | 140 |
| 141 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); | 141 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 } // namespace content | 144 } // namespace content |
| 145 | 145 |
| 146 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ | 146 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ |
| OLD | NEW |