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