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

Unified Diff: chrome/browser/search/instant_extended_context_menu_observer.h

Issue 18223002: InstantExtended: Remove overlay control code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Call renamed method. Created 7 years, 6 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
Index: chrome/browser/search/instant_extended_context_menu_observer.h
diff --git a/chrome/browser/search/instant_extended_context_menu_observer.h b/chrome/browser/search/instant_extended_context_menu_observer.h
deleted file mode 100644
index 4685ce643ec06b7228c383c9f5286af02216e325..0000000000000000000000000000000000000000
--- a/chrome/browser/search/instant_extended_context_menu_observer.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2013 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_BROWSER_SEARCH_INSTANT_EXTENDED_CONTEXT_MENU_OBSERVER_H_
-#define CHROME_BROWSER_SEARCH_INSTANT_EXTENDED_CONTEXT_MENU_OBSERVER_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "chrome/browser/tab_contents/render_view_context_menu_observer.h"
-
-namespace content {
-class WebContents;
-}
-
-// This class disables menu items which perform poorly in instant extended mode.
-class InstantExtendedContextMenuObserver
- : public RenderViewContextMenuObserver {
- public:
- explicit InstantExtendedContextMenuObserver(content::WebContents* contents);
- virtual ~InstantExtendedContextMenuObserver();
-
- // RenderViewContextMenuObserver implementation.
- virtual bool IsCommandIdSupported(int command_id) OVERRIDE;
- virtual bool IsCommandIdEnabled(int command_id) OVERRIDE;
-
- private:
- // Whether the source web contents of the context menu corresponds to an
- // Instant overlay.
- const bool is_instant_overlay_;
-
- DISALLOW_COPY_AND_ASSIGN(InstantExtendedContextMenuObserver);
-};
-
-#endif // CHROME_BROWSER_SEARCH_INSTANT_EXTENDED_CONTEXT_MENU_OBSERVER_H_
« no previous file with comments | « chrome/browser/history/history_tab_helper.cc ('k') | chrome/browser/search/instant_extended_context_menu_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698