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

Unified Diff: ash/drag_drop/drag_image_view.h

Issue 1514743002: cc: turn on strict paint property checking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix DragImageView to not resize during paint Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/drag_drop/drag_image_view.cc » ('j') | ash/drag_drop/drag_image_view.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/drag_drop/drag_image_view.h
diff --git a/ash/drag_drop/drag_image_view.h b/ash/drag_drop/drag_image_view.h
index 1415f50714e6c3ba483dd3f087ec172fb743baf2..15d2ad5ccbfebd7ad89c4345a9421530037b1553 100644
--- a/ash/drag_drop/drag_image_view.h
+++ b/ash/drag_drop/drag_image_view.h
@@ -8,6 +8,10 @@
#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/views/controls/image_view.h"
+namespace gfx {
+class Image;
+}
+
namespace views {
class Widget;
}
@@ -58,9 +62,14 @@ class DragImageView : public views::ImageView {
void SetOpacity(float opacity);
private:
+ gfx::Image* DragHint() const;
+
// Overridden from views::ImageView.
void OnPaint(gfx::Canvas* canvas) override;
+ // Overridden from views::view
+ void Layout() override;
+
scoped_ptr<views::Widget> widget_;
gfx::Size widget_size_;
« no previous file with comments | « no previous file | ash/drag_drop/drag_image_view.cc » ('j') | ash/drag_drop/drag_image_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698