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

Side by Side Diff: chrome/browser/search/instant_extended_context_menu_observer.cc

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, 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
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/search/instant_extended_context_menu_observer.h"
6
7 #include "base/logging.h"
8 #include "chrome/app/chrome_command_ids.h"
9 #include "chrome/browser/search/search.h"
10
11 InstantExtendedContextMenuObserver::InstantExtendedContextMenuObserver(
12 content::WebContents* contents)
13 : is_instant_overlay_(chrome::IsInstantOverlay(contents)) {
14 }
15
16 InstantExtendedContextMenuObserver::~InstantExtendedContextMenuObserver() {
17 }
18
19 bool InstantExtendedContextMenuObserver::IsCommandIdSupported(int command_id) {
20 switch (command_id) {
21 case IDC_BACK:
22 case IDC_FORWARD:
23 case IDC_PRINT:
24 case IDC_RELOAD:
25 return is_instant_overlay_;
26 default:
27 return false;
28 }
29 }
30
31 bool InstantExtendedContextMenuObserver::IsCommandIdEnabled(int command_id) {
32 DCHECK(IsCommandIdSupported(command_id));
33 return false;
34 }
OLDNEW
« no previous file with comments | « chrome/browser/search/instant_extended_context_menu_observer.h ('k') | chrome/browser/search/search.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698