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

Side by Side Diff: chrome/renderer/searchbox.h

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_RENDERER_SEARCHBOX_H_ 5 #ifndef CHROME_RENDERER_SEARCHBOX_H_
6 #define CHROME_RENDERER_SEARCHBOX_H_ 6 #define CHROME_RENDERER_SEARCHBOX_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "chrome/common/instant_types.h" 13 #include "chrome/common/instant_types.h"
14 #include "content/renderer/render_view_observer.h" 14 #include "content/renderer/render_view_observer.h"
15 #include "content/renderer/render_view_observer_tracker.h" 15 #include "content/renderer/render_view_observer_tracker.h"
16 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
17 17
18 class SearchBox : public RenderViewObserver, 18 class SearchBox : public RenderViewObserver,
19 public RenderViewObserverTracker<SearchBox> { 19 public RenderViewObserverTracker<SearchBox> {
20 public: 20 public:
21 explicit SearchBox(RenderView* render_view); 21 explicit SearchBox(RenderView* render_view);
22 ~SearchBox(); 22 virtual ~SearchBox();
23 23
24 // Sends ViewHostMsg_SetSuggestions to the browser. 24 // Sends ViewHostMsg_SetSuggestions to the browser.
25 void SetSuggestions(const std::vector<std::string>& suggestions, 25 void SetSuggestions(const std::vector<std::string>& suggestions,
26 InstantCompleteBehavior behavior); 26 InstantCompleteBehavior behavior);
27 27
28 const string16& value() { return value_; } 28 const string16& value() { return value_; }
29 bool verbatim() { return verbatim_; } 29 bool verbatim() { return verbatim_; }
30 uint32 selection_start() { return selection_start_; } 30 uint32 selection_start() { return selection_start_; }
31 uint32 selection_end() { return selection_end_; } 31 uint32 selection_end() { return selection_end_; }
32 const gfx::Rect& rect() { return rect_; } 32 const gfx::Rect& rect() { return rect_; }
(...skipping 20 matching lines...) Expand all
53 string16 value_; 53 string16 value_;
54 bool verbatim_; 54 bool verbatim_;
55 uint32 selection_start_; 55 uint32 selection_start_;
56 uint32 selection_end_; 56 uint32 selection_end_;
57 gfx::Rect rect_; 57 gfx::Rect rect_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(SearchBox); 59 DISALLOW_COPY_AND_ASSIGN(SearchBox);
60 }; 60 };
61 61
62 #endif // CHROME_RENDERER_SEARCHBOX_H_ 62 #endif // CHROME_RENDERER_SEARCHBOX_H_
OLDNEW
« no previous file with comments | « chrome/renderer/safe_browsing/malware_dom_details.h ('k') | chrome/renderer/spellchecker/spellcheck.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698