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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java

Issue 1689973002: [Offline pages] Updating page info to explain offline pages properly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@omnibox-patch-1
Patch Set: Addressing feedback Created 4 years, 10 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 package org.chromium.chrome.browser.toolbar; 5 package org.chromium.chrome.browser.toolbar;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.app.Activity; 8 import android.app.Activity;
9 import android.content.Context; 9 import android.content.Context;
10 import android.content.res.Configuration; 10 import android.content.res.Configuration;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 @Override 122 @Override
123 public void onNativeLibraryReady() { 123 public void onNativeLibraryReady() {
124 super.onNativeLibraryReady(); 124 super.onNativeLibraryReady();
125 mSecurityButton.setOnClickListener(new OnClickListener() { 125 mSecurityButton.setOnClickListener(new OnClickListener() {
126 @Override 126 @Override
127 public void onClick(View v) { 127 public void onClick(View v) {
128 Tab currentTab = getToolbarDataProvider().getTab(); 128 Tab currentTab = getToolbarDataProvider().getTab();
129 if (currentTab == null || currentTab.getWebContents() == null) r eturn; 129 if (currentTab == null || currentTab.getWebContents() == null) r eturn;
130 Activity activity = currentTab.getWindowAndroid().getActivity(). get(); 130 Activity activity = currentTab.getWindowAndroid().getActivity(). get();
131 if (activity == null) return; 131 if (activity == null) return;
132 WebsiteSettingsPopup.show(activity, currentTab.getProfile(), 132 WebsiteSettingsPopup.show(activity, currentTab);
133 currentTab.getWebContents());
134 } 133 }
135 }); 134 });
136 } 135 }
137 136
138 @Override 137 @Override
139 public void setCloseButtonImageResource(Drawable drawable) { 138 public void setCloseButtonImageResource(Drawable drawable) {
140 mCloseButton.setImageDrawable(drawable); 139 mCloseButton.setImageDrawable(drawable);
141 } 140 }
142 141
143 @Override 142 @Override
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 @Override 579 @Override
581 protected void setAppMenuUpdateBadgeToVisible(boolean animate) { 580 protected void setAppMenuUpdateBadgeToVisible(boolean animate) {
582 } 581 }
583 582
584 @Override 583 @Override
585 public View getMenuButtonWrapper() { 584 public View getMenuButtonWrapper() {
586 // This class has no menu button wrapper, so return the menu button inst ead. 585 // This class has no menu button wrapper, so return the menu button inst ead.
587 return mMenuButton; 586 return mMenuButton;
588 } 587 }
589 } 588 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698