| 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/timer.h" | 10 #include "base/timer/timer.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 bool right_aligned, | 88 bool right_aligned, |
| 89 bool allow_multiple_selection) OVERRIDE; | 89 bool allow_multiple_selection) OVERRIDE; |
| 90 virtual void StartDragging(const DropData& drop_data, | 90 virtual void StartDragging(const DropData& drop_data, |
| 91 WebKit::WebDragOperationsMask operations, | 91 WebKit::WebDragOperationsMask operations, |
| 92 const gfx::ImageSkia& image, | 92 const gfx::ImageSkia& image, |
| 93 const gfx::Vector2d& image_offset, | 93 const gfx::Vector2d& image_offset, |
| 94 const DragEventSourceInfo& event_info) OVERRIDE; | 94 const DragEventSourceInfo& event_info) OVERRIDE; |
| 95 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; | 95 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; |
| 96 virtual void GotFocus() OVERRIDE; | 96 virtual void GotFocus() OVERRIDE; |
| 97 virtual void TakeFocus(bool reverse) OVERRIDE; | 97 virtual void TakeFocus(bool reverse) OVERRIDE; |
| 98 virtual bool GrabSnapshot(const std::string& format, |
| 99 int quality, |
| 100 double scale, |
| 101 std::vector<uint8>* data) OVERRIDE; |
| 98 | 102 |
| 99 WebContentsImpl* web_contents() const { return web_contents_; } | 103 WebContentsImpl* web_contents() const { return web_contents_; } |
| 100 | 104 |
| 101 private: | 105 private: |
| 102 void EndDragging(); | 106 void EndDragging(); |
| 103 void CloseTab(); | 107 void CloseTab(); |
| 104 | 108 |
| 105 LRESULT OnCreate( | 109 LRESULT OnCreate( |
| 106 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); | 110 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); |
| 107 LRESULT OnDestroy( | 111 LRESULT OnDestroy( |
| (...skipping 30 matching lines...) Expand all Loading... |
| 138 scoped_refptr<WebContentsDragWin> drag_handler_; | 142 scoped_refptr<WebContentsDragWin> drag_handler_; |
| 139 | 143 |
| 140 scoped_ptr<ui::HWNDMessageFilter> hwnd_message_filter_; | 144 scoped_ptr<ui::HWNDMessageFilter> hwnd_message_filter_; |
| 141 | 145 |
| 142 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); | 146 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); |
| 143 }; | 147 }; |
| 144 | 148 |
| 145 } // namespace content | 149 } // namespace content |
| 146 | 150 |
| 147 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ | 151 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ |
| OLD | NEW |