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

Side by Side Diff: Source/web/WebPluginScrollbarImpl.h

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WebPluginDocument.cpp ('k') | Source/web/WebPluginScrollbarImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 12 matching lines...) Expand all
23 */ 23 */
24 24
25 #ifndef WebPluginScrollbarImpl_h 25 #ifndef WebPluginScrollbarImpl_h
26 #define WebPluginScrollbarImpl_h 26 #define WebPluginScrollbarImpl_h
27 27
28 #include "public/web/WebPluginScrollbar.h" 28 #include "public/web/WebPluginScrollbar.h"
29 29
30 #include "wtf/RefPtr.h" 30 #include "wtf/RefPtr.h"
31 #include "wtf/Vector.h" 31 #include "wtf/Vector.h"
32 32
33 namespace WebCore { 33 namespace blink {
34 class IntPoint; 34 class IntPoint;
35 class IntRect; 35 class IntRect;
36 class Scrollbar; 36 class Scrollbar;
37 } 37 }
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class ScrollbarGroup; 41 class ScrollbarGroup;
42 42
43 class WebPluginScrollbarImpl FINAL : public WebPluginScrollbar { 43 class WebPluginScrollbarImpl FINAL : public WebPluginScrollbar {
44 public: 44 public:
45 WebPluginScrollbarImpl(Orientation, ScrollbarGroup*, WebPluginScrollbarClien t*); 45 WebPluginScrollbarImpl(Orientation, ScrollbarGroup*, WebPluginScrollbarClien t*);
46 virtual ~WebPluginScrollbarImpl(); 46 virtual ~WebPluginScrollbarImpl();
47 47
48 void setScrollOffset(int); 48 void setScrollOffset(int);
49 void invalidateScrollbarRect(const WebCore::IntRect&); 49 void invalidateScrollbarRect(const blink::IntRect&);
50 // FIXME: Combine this with the other getTickmarks method 50 // FIXME: Combine this with the other getTickmarks method
51 void getTickmarks(Vector<WebCore::IntRect>&) const; 51 void getTickmarks(Vector<blink::IntRect>&) const;
52 WebCore::IntPoint convertFromContainingViewToScrollbar(const WebCore::IntPoi nt& parentPoint) const; 52 blink::IntPoint convertFromContainingViewToScrollbar(const blink::IntPoint& parentPoint) const;
53 void scrollbarStyleChanged(); 53 void scrollbarStyleChanged();
54 54
55 int scrollOffset() { return m_scrollOffset; } 55 int scrollOffset() { return m_scrollOffset; }
56 WebCore::Scrollbar* scrollbar() { return m_scrollbar.get(); } 56 blink::Scrollbar* scrollbar() { return m_scrollbar.get(); }
57 57
58 // blink::WebScrollbar methods 58 // blink::WebScrollbar methods
59 virtual bool isOverlay() const OVERRIDE; 59 virtual bool isOverlay() const OVERRIDE;
60 virtual int value() const OVERRIDE; 60 virtual int value() const OVERRIDE;
61 virtual WebPoint location() const OVERRIDE; 61 virtual WebPoint location() const OVERRIDE;
62 virtual WebSize size() const OVERRIDE; 62 virtual WebSize size() const OVERRIDE;
63 virtual bool enabled() const OVERRIDE; 63 virtual bool enabled() const OVERRIDE;
64 virtual int maximum() const OVERRIDE; 64 virtual int maximum() const OVERRIDE;
65 virtual int totalSize() const OVERRIDE; 65 virtual int totalSize() const OVERRIDE;
66 virtual bool isScrollViewScrollbar() const OVERRIDE; 66 virtual bool isScrollViewScrollbar() const OVERRIDE;
(...skipping 22 matching lines...) Expand all
89 bool onMouseUp(const WebInputEvent&); 89 bool onMouseUp(const WebInputEvent&);
90 bool onMouseMove(const WebInputEvent&); 90 bool onMouseMove(const WebInputEvent&);
91 bool onMouseLeave(const WebInputEvent&); 91 bool onMouseLeave(const WebInputEvent&);
92 bool onMouseWheel(const WebInputEvent&); 92 bool onMouseWheel(const WebInputEvent&);
93 bool onKeyDown(const WebInputEvent&); 93 bool onKeyDown(const WebInputEvent&);
94 94
95 ScrollbarGroup* m_group; 95 ScrollbarGroup* m_group;
96 WebPluginScrollbarClient* m_client; 96 WebPluginScrollbarClient* m_client;
97 97
98 int m_scrollOffset; 98 int m_scrollOffset;
99 RefPtr<WebCore::Scrollbar> m_scrollbar; 99 RefPtr<blink::Scrollbar> m_scrollbar;
100 }; 100 };
101 101
102 } // namespace blink 102 } // namespace blink
103 103
104 #endif 104 #endif
OLDNEW
« no previous file with comments | « Source/web/WebPluginDocument.cpp ('k') | Source/web/WebPluginScrollbarImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698