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

Side by Side Diff: content/browser/android/draw_delegate_impl.h

Issue 11368031: First step towards component build for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: indent 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_ANDROID_DRAW_DELEGATE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_DRAW_DELEGATE_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_DRAW_DELEGATE_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_DRAW_DELEGATE_IMPL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "content/common/content_export.h"
9 #include "content/public/browser/android/draw_delegate.h" 10 #include "content/public/browser/android/draw_delegate.h"
10 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
11 #include "ui/gfx/size.h" 12 #include "ui/gfx/size.h"
12 13
13 namespace content { 14 namespace content {
14 15
15 class DrawDelegateImpl : public DrawDelegate { 16 class CONTENT_EXPORT DrawDelegateImpl : public DrawDelegate {
16 public: 17 public:
17 static DrawDelegateImpl* GetInstance(); 18 static DrawDelegateImpl* GetInstance();
18 DrawDelegateImpl(); 19 DrawDelegateImpl();
19 virtual ~DrawDelegateImpl(); 20 virtual ~DrawDelegateImpl();
20 21
21 // DrawDelegate implementation. 22 // DrawDelegate implementation.
22 virtual void SetBounds(const gfx::Size& size) OVERRIDE; 23 virtual void SetBounds(const gfx::Size& size) OVERRIDE;
23 gfx::Size GetBounds() { return size_; } 24 gfx::Size GetBounds() { return size_; }
24 25
25 protected: 26 protected:
26 gfx::Size size_; 27 gfx::Size size_;
27 28
28 DISALLOW_COPY_AND_ASSIGN(DrawDelegateImpl); 29 DISALLOW_COPY_AND_ASSIGN(DrawDelegateImpl);
29 }; 30 };
30 31
31 } // namespace content 32 } // namespace content
32 33
33 #endif // CONTENT_BROWSER_ANDROID_DRAW_DELEGATE_IMPL_H_ 34 #endif // CONTENT_BROWSER_ANDROID_DRAW_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « content/app/android/content_main.cc ('k') | content/browser/renderer_host/compositor_impl_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698