Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: content/browser/web_contents/web_contents_view_win.h

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderText fixup Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698