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

Unified Diff: chrome/browser/ui/webui/local_omnibox_popup/local_omnibox_popup_ui.cc

Issue 11555033: Adding local html page used in Instant Extended mode when instant is disabled or unavailable. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix uninitialized variable. Created 8 years 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/browser/ui/webui/local_omnibox_popup/local_omnibox_popup_ui.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/local_omnibox_popup/local_omnibox_popup_ui.cc
diff --git a/chrome/browser/ui/webui/local_omnibox_popup/local_omnibox_popup_ui.cc b/chrome/browser/ui/webui/local_omnibox_popup/local_omnibox_popup_ui.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e11705276f36a8f2d7d60a9089ae85e45c70a2d6
--- /dev/null
+++ b/chrome/browser/ui/webui/local_omnibox_popup/local_omnibox_popup_ui.cc
@@ -0,0 +1,47 @@
+// Copyright 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.
+
+#include "chrome/browser/ui/webui/local_omnibox_popup/local_omnibox_popup_ui.h"
+
+#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
+#include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
+#include "chrome/common/url_constants.h"
+#include "content/public/browser/web_ui.h"
+#include "content/public/browser/web_ui_controller.h"
+#include "grit/browser_resources.h"
+
+
+LocalOmniboxPopupUI::LocalOmniboxPopupUI(content::WebUI* web_ui)
+ : content::WebUIController(web_ui) {
+ ChromeWebUIDataSource* source = new ChromeWebUIDataSource(
+ chrome::kChromeUILocalOmniboxPopupHost);
+ source->add_resource_path("local_omnibox_popup.css",
+ IDR_LOCAL_OMNIBOX_POPUP_CSS);
+ source->add_resource_path("local_omnibox_popup.js",
+ IDR_LOCAL_OMNIBOX_POPUP_JS);
+ source->add_resource_path("local_omnibox_popup.js",
+ IDR_LOCAL_OMNIBOX_POPUP_JS);
+
+ source->add_resource_path("images/history_icon.png",
+ IDR_LOCAL_OMNIBOX_POPUP_IMAGES_HISTORY_ICON_PNG);
+ source->add_resource_path("images/page_icon.png",
+ IDR_LOCAL_OMNIBOX_POPUP_IMAGES_PAGE_ICON_PNG);
+ source->add_resource_path("images/search_icon.png",
+ IDR_LOCAL_OMNIBOX_POPUP_IMAGES_SEARCH_ICON_PNG);
+ source->add_resource_path("images/2x/history_icon.png",
+ IDR_LOCAL_OMNIBOX_POPUP_IMAGES_2X_HISTORY_ICON_PNG);
+ source->add_resource_path("images/2x/page_icon.png",
+ IDR_LOCAL_OMNIBOX_POPUP_IMAGES_2X_PAGE_ICON_PNG);
+ source->add_resource_path("images/2x/search_icon.png",
+ IDR_LOCAL_OMNIBOX_POPUP_IMAGES_2X_SEARCH_ICON_PNG);
+
+ source->set_default_resource(IDR_LOCAL_OMNIBOX_POPUP_HTML);
+
+ Profile* profile = Profile::FromWebUI(web_ui);
+ ChromeURLDataManager::AddDataSource(profile, source);
+}
+
+LocalOmniboxPopupUI::~LocalOmniboxPopupUI() {
+}
« no previous file with comments | « chrome/browser/ui/webui/local_omnibox_popup/local_omnibox_popup_ui.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698