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

Unified Diff: chrome/renderer/searchbox.h

Issue 10825304: Creating a new directory chrome/renderer/searchbox and moving appropriate code to it. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removing sky from OWNERS. Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/searchbox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/searchbox.h
diff --git a/chrome/renderer/searchbox.h b/chrome/renderer/searchbox.h
deleted file mode 100644
index 844787068ed4d29926adb1e40e256d71fae00a1b..0000000000000000000000000000000000000000
--- a/chrome/renderer/searchbox.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_RENDERER_SEARCHBOX_H_
-#define CHROME_RENDERER_SEARCHBOX_H_
-
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/string16.h"
-#include "chrome/common/instant_types.h"
-#include "content/public/renderer/render_view_observer.h"
-#include "content/public/renderer/render_view_observer_tracker.h"
-#include "ui/gfx/rect.h"
-
-namespace content {
-class RenderView;
-}
-
-namespace IPC {
-class Message;
-}
-
-class SearchBox : public content::RenderViewObserver,
- public content::RenderViewObserverTracker<SearchBox> {
- public:
- explicit SearchBox(content::RenderView* render_view);
- virtual ~SearchBox();
-
- // Sends ViewHostMsg_SetSuggestions to the browser.
- void SetSuggestions(const std::vector<string16>& suggestions,
- InstantCompleteBehavior behavior);
-
- const string16& value() const { return value_; }
- bool verbatim() const { return verbatim_; }
- size_t selection_start() const { return selection_start_; }
- size_t selection_end() const { return selection_end_; }
- gfx::Rect GetRect();
-
- private:
- // RenderViewObserver implementation.
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
-
- void OnChange(const string16& value,
- bool verbatim,
- size_t selection_start,
- size_t selection_end);
- void OnSubmit(const string16& value);
- void OnCancel(const string16& value);
- void OnResize(const gfx::Rect& bounds);
- void OnDetermineIfPageSupportsInstant();
-
- // Sets the searchbox values to their initial value.
- void Reset();
-
- string16 value_;
- bool verbatim_;
- size_t selection_start_;
- size_t selection_end_;
- gfx::Rect rect_;
-
- DISALLOW_COPY_AND_ASSIGN(SearchBox);
-};
-
-#endif // CHROME_RENDERER_SEARCHBOX_H_
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/searchbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698