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

Side by Side Diff: content/browser/web_contents/aura/image_window_delegate.h

Issue 832953002: Cleanup: Update the path to gfx size headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 11 months 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_AURA_IMAGE_WINDOW_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_AURA_IMAGE_WINDOW_DELEGATE_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_AURA_IMAGE_WINDOW_DELEGATE_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_AURA_IMAGE_WINDOW_DELEGATE_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "ui/aura/window_delegate.h" 9 #include "ui/aura/window_delegate.h"
10 #include "ui/gfx/geometry/size.h"
10 #include "ui/gfx/image/image.h" 11 #include "ui/gfx/image/image.h"
11 #include "ui/gfx/size.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // An ImageWindowDelegate paints an image for a Window. The delegate destroys 15 // An ImageWindowDelegate paints an image for a Window. The delegate destroys
16 // itself when the Window is destroyed. The delegate does not consume any event. 16 // itself when the Window is destroyed. The delegate does not consume any event.
17 class CONTENT_EXPORT ImageWindowDelegate : public aura::WindowDelegate { 17 class CONTENT_EXPORT ImageWindowDelegate : public aura::WindowDelegate {
18 public: 18 public:
19 ImageWindowDelegate(); 19 ImageWindowDelegate();
20 20
21 void SetImage(const gfx::Image& image); 21 void SetImage(const gfx::Image& image);
(...skipping 30 matching lines...) Expand all
52 // the image size is smaller than the window size, then the delegate paints a 52 // the image size is smaller than the window size, then the delegate paints a
53 // white background for the missing regions. 53 // white background for the missing regions.
54 bool size_mismatch_; 54 bool size_mismatch_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(ImageWindowDelegate); 56 DISALLOW_COPY_AND_ASSIGN(ImageWindowDelegate);
57 }; 57 };
58 58
59 } // namespace content 59 } // namespace content
60 60
61 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_IMAGE_WINDOW_DELEGATE_H_ 61 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_IMAGE_WINDOW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698